作者 lihan
1 个管道 的构建 通过 耗费 0 秒

赠送积分和角色管理

@@ -117,11 +117,11 @@ class AdminIndexController extends AdminBaseController @@ -117,11 +117,11 @@ class AdminIndexController extends AdminBaseController
117 } 117 }
118 } 118 }
119 $map = [ 119 $map = [
120 - 'uid' => ['eq', $son_str], 120 + 'uid' => ['in', $son_str],
121 'pay_type' => ['eq', 3], 121 'pay_type' => ['eq', 3],
122 'step' => ['neq', 1] 122 'step' => ['neq', 1]
123 ]; 123 ];
124 - $data = Db::name('zj_order')->where($map)->field('sum(whole) as whole,sum(whole_num) as whole_num')->select(); 124 + $data = Db::name('zj_order')->where($map)->field('*')->select();
125 $whole = $data[0]['whole']; 125 $whole = $data[0]['whole'];
126 $whole_num = $data[0]['whole_num']; 126 $whole_num = $data[0]['whole_num'];
127 $total = $whole - $whole_num; 127 $total = $whole - $whole_num;