|
|
@ -188,7 +188,7 @@ class PromoteCompanyController extends ThinkController
|
|
|
|
$promotemap['p.company_id']=["in",$companyallids];
|
|
|
|
$promotemap['p.company_id']=["in",$companyallids];
|
|
|
|
$promotemap['p.level']=1;
|
|
|
|
$promotemap['p.level']=1;
|
|
|
|
$promotecount = M("Promote","tab_")->alias('p')->where($promotemap)->count();
|
|
|
|
$promotecount = M("Promote","tab_")->alias('p')->where($promotemap)->count();
|
|
|
|
// dd($companyres);
|
|
|
|
// dd($companyres);
|
|
|
|
$this->assign('listData', $companyres);
|
|
|
|
$this->assign('listData', $companyres);
|
|
|
|
$this->assign('count', $count);
|
|
|
|
$this->assign('count', $count);
|
|
|
|
$this->assign('promotecount', $promotecount);
|
|
|
|
$this->assign('promotecount', $promotecount);
|
|
|
@ -1300,7 +1300,7 @@ class PromoteCompanyController extends ThinkController
|
|
|
|
if($is_export){
|
|
|
|
if($is_export){
|
|
|
|
$CpRadio = $this->getPromoteCompanyCpRadio($game_ids);
|
|
|
|
$CpRadio = $this->getPromoteCompanyCpRadio($game_ids);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// dd($CpRadio);
|
|
|
|
$endtime = time();
|
|
|
|
$endtime = time();
|
|
|
|
$rwhere = "(end_time = 0 OR end_time >= '{$endtime}') and company_id='{$company_id}' and relation_game_id in ({$game_ids})";
|
|
|
|
$rwhere = "(end_time = 0 OR end_time >= '{$endtime}') and company_id='{$company_id}' and relation_game_id in ({$game_ids})";
|
|
|
|
$cgr_res = M("CompanyGameRatio","tab_")->where($rwhere)->select();
|
|
|
|
$cgr_res = M("CompanyGameRatio","tab_")->where($rwhere)->select();
|
|
|
@ -1334,7 +1334,6 @@ class PromoteCompanyController extends ThinkController
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if(empty($game_arr)){
|
|
|
|
if(empty($game_arr)){
|
|
|
|
return $senddata;
|
|
|
|
return $senddata;
|
|
|
|
}
|
|
|
|
}
|
|
|
|