Commit c6d8289a by 冷斌

update

parent cab908f5
...@@ -124,13 +124,11 @@ class CustomerController extends AdminbaseController{ ...@@ -124,13 +124,11 @@ class CustomerController extends AdminbaseController{
} }
$v['total_votes']=$total_votes; $v['total_votes']=$total_votes;
$results = DI()->notorm->users_coinrecord $results = M('users_coinrecord')
->select("sum('totalcoin') as sum") // ->select("sum('totalcoin') as sum")
->where("uid = {$v['id']} and type='expend' and action in ('sendgift','sendbarrage')") ->where("uid = {$v['id']} and type='expend' and action in ('sendgift','sendbarrage')")
->find(); ->sum('totalcoin');
var_dump($results); $v['consumption'] = (int)$results;
die;
$v['consumption'] = (int)$results['sum'];
$proxy = M('users_proxy') $proxy = M('users_proxy')
->field('path') ->field('path')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment