Commit cf95f4f2 by 冷斌

fix bug

parent 2b2a3923
...@@ -89,6 +89,14 @@ class IndexadminController extends AdminbaseController { ...@@ -89,6 +89,14 @@ class IndexadminController extends AdminbaseController {
->select(); ->select();
foreach($lists as $k=>$v){ foreach($lists as $k=>$v){
$v['code']=$Agent_code->where("uid = {$v['id']}")->getField('code'); $v['code']=$Agent_code->where("uid = {$v['id']}")->getField('code');
//consumption
$v['consumption'] = M('users_coinrecord')->where([
'uid' => $v['id'],
'type'=> 'expend',
])->sum('totalcoin');
var_dump($v); var_dump($v);
die; die;
$lists[$k]=$v; $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