Commit b996e9f7 by 冷斌

update

parent c6d8289a
...@@ -128,6 +128,9 @@ class CustomerController extends AdminbaseController{ ...@@ -128,6 +128,9 @@ 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')")
->sum('totalcoin'); ->sum('totalcoin');
var_dump($results);
die;
$v['consumption'] = (int)$results; $v['consumption'] = (int)$results;
$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