Commit c6d8289a by 冷斌

update

parent cab908f5
......@@ -124,13 +124,11 @@ class CustomerController extends AdminbaseController{
}
$v['total_votes']=$total_votes;
$results = DI()->notorm->users_coinrecord
->select("sum('totalcoin') as sum")
$results = M('users_coinrecord')
// ->select("sum('totalcoin') as sum")
->where("uid = {$v['id']} and type='expend' and action in ('sendgift','sendbarrage')")
->find();
var_dump($results);
die;
$v['consumption'] = (int)$results['sum'];
->sum('totalcoin');
$v['consumption'] = (int)$results;
$proxy = M('users_proxy')
->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