Commit cab908f5 by 冷斌

update

parent 54dc9003
...@@ -128,6 +128,8 @@ class CustomerController extends AdminbaseController{ ...@@ -128,6 +128,8 @@ class CustomerController extends AdminbaseController{
->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(); ->find();
var_dump($results);
die;
$v['consumption'] = (int)$results['sum']; $v['consumption'] = (int)$results['sum'];
$proxy = M('users_proxy') $proxy = M('users_proxy')
......
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