Commit 8d32690e by 冷斌

update

parent 78093b17
......@@ -93,6 +93,11 @@ class IndexadminController extends AdminbaseController {
->select();
foreach($lists as $k=>$v){
$v['code']=$Agent_code->where("uid = {$v['id']}")->getField('code');
$consumption = M('users_coinrecord')->where([
'uid' => $v['id'],
'type'=> 'expend',
])->sum('totalcoin');
$v['consumption'] = $consumption ? $consumption : 0;
$lists[$k]=$v;
}
......
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