Commit 94ede389 by 冷斌

update

parent 5b9c130a
......@@ -55,8 +55,6 @@ class PromotersController extends AdminbaseController{
foreach($users as $k=>$v){
$path=setpath($v['id']);
$uids=$Proxy->where("type = 0 and path like '%{$path}%'")->getField('uid',true);
if(!$uids){
$uids=[];
array_push($uids,'0');
......@@ -77,7 +75,8 @@ class PromotersController extends AdminbaseController{
// $total_coin='0';
// }
// $v['total_coin']=$total_coin;
var_dump($uids);
die;
$total_coin = M('users_coinrecord')
// ->select("sum('totalcoin') as sum")
->where("uid in ('{$uids}') and type='expend' and action in ('sendgift','sendbarrage')")
......
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