|
|
|
@ -42,20 +42,20 @@ class FinancePromoteController extends AdminController
|
|
|
|
|
|
|
|
|
|
$senddata = [];
|
|
|
|
|
//获取各会长的充值方式
|
|
|
|
|
$cash = self::getJoinPromoteData([],$istimeselect);
|
|
|
|
|
$cash = $this->getJoinPromoteData([],$istimeselect);
|
|
|
|
|
foreach($cash as $k=>$v){
|
|
|
|
|
$senddata[$v['p_id']] = $v;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$unsenddata = [];
|
|
|
|
|
$uncash = self::getJoinUnPayPromoteData([],$istimeselect);
|
|
|
|
|
$uncash = $this->getJoinUnPayPromoteData([],$istimeselect);
|
|
|
|
|
foreach($uncash as $k=>$v){
|
|
|
|
|
$unsenddata[$v['p_id']] = $v;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//内冲
|
|
|
|
|
$inside = self::getJoinPromoteData([],$istimeselect,"promote_coin");
|
|
|
|
|
$inside = $this->getJoinPromoteData([],$istimeselect,"promote_coin");
|
|
|
|
|
foreach($inside as $k=>$v){
|
|
|
|
|
if(array_key_exists($v['p_id'],$senddata)){
|
|
|
|
|
$senddata[$v['p_id']]['inside_cash_count']= $v['pay_amount']-$v['back_amount'];
|
|
|
|
@ -113,7 +113,7 @@ class FinancePromoteController extends AdminController
|
|
|
|
|
unset($_REQUEST['company_id']);
|
|
|
|
|
unset($_REQUEST['company_belong']);
|
|
|
|
|
$_REQUEST['promote_id'] = 0;
|
|
|
|
|
$gfcash = self::getJoinPromoteData([],$istimeselect);
|
|
|
|
|
$gfcash = $this->getJoinPromoteData([],$istimeselect);
|
|
|
|
|
$senddata[0] = $gfcash[0];
|
|
|
|
|
|
|
|
|
|
$pmap['status']=1;
|
|
|
|
@ -256,7 +256,8 @@ class FinancePromoteController extends AdminController
|
|
|
|
|
}
|
|
|
|
|
$isMarketLeader = isMarketLeader();
|
|
|
|
|
if ($isMarketLeader) {
|
|
|
|
|
$map['promote.admin_id'] = ['gt', 0];
|
|
|
|
|
$marketPromoteIds = getPowerPromoteIds();
|
|
|
|
|
$map['_string'] = "s.promote_id in ($marketPromoteIds)";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (!empty(I('develop_type'))) {
|
|
|
|
@ -340,7 +341,8 @@ class FinancePromoteController extends AdminController
|
|
|
|
|
}
|
|
|
|
|
$isMarketLeader = isMarketLeader();
|
|
|
|
|
if ($isMarketLeader) {
|
|
|
|
|
$map['promote.admin_id'] = ['gt', 0];
|
|
|
|
|
$marketPromoteIds = getPowerPromoteIds();
|
|
|
|
|
$map['_string'] = "s.promote_id in ($marketPromoteIds)";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (!empty(I('develop_type'))) {
|
|
|
|
|