Commit 54dc9003 by 冷斌

update

parent f46dcf8a
...@@ -125,9 +125,10 @@ class CustomerController extends AdminbaseController{ ...@@ -125,9 +125,10 @@ class CustomerController extends AdminbaseController{
$v['total_votes']=$total_votes; $v['total_votes']=$total_votes;
$results = DI()->notorm->users_coinrecord $results = DI()->notorm->users_coinrecord
->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')")
->sum('totalcoin'); ->find();
$v['consumption'] = (int)$results; $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