diff --git a/Application/Admin/Controller/FinancePromoteController.class.php b/Application/Admin/Controller/FinancePromoteController.class.php index 63409d2dc..f18459b7c 100644 --- a/Application/Admin/Controller/FinancePromoteController.class.php +++ b/Application/Admin/Controller/FinancePromoteController.class.php @@ -41,6 +41,7 @@ class FinancePromoteController extends AdminController $senddata = []; //获取各会长的充值方式 $cash = self::getJoinPromoteData([],$istimeselect); + foreach($cash as $k=>$v){ $senddata[$v['p_id']] = $v; } @@ -56,19 +57,22 @@ class FinancePromoteController extends AdminController $senddata[$v['p_id']] = $v; }; } + if(!empty($senddata)){ if(array_key_exists(0,$senddata) || $_REQUEST['promote_id']==0){ - $pmap['status']=1; - if($istimeselect){ - $pmap['create_time'] = $istimeselect; + if (empty($_REQUEST['company_id'])) { + $pmap['status']=1; + if($istimeselect){ + $pmap['create_time'] = $istimeselect; + } + $admininside = M("provide_user p","tab_")->field("sum(amount) amount")->where($pmap)->find(); + if($admininside['amount'] >0){ + $senddata[0]['inside_cash_count']= $admininside['amount']; + } } - $admininside = M("provide_user p","tab_")->field("sum(amount) amount")->where($pmap)->find(); - if($admininside['amount'] >0){ - $senddata[0]['inside_cash_count']= $admininside['amount']; - } - } } + $data = []; $count =array( "cash_count"=>0,