@ -1684,7 +1684,9 @@ function getPowerPromoteIds()
if (in_array('-1',explode(',',$userAuth['data_president']))) {
$promoteIds = $promoteIds .',0';
}
// var_dump($promoteIds);die();
if(!$promoteIds){
$promoteIds = "-1";
session('user_auth_promote_ids', $promoteIds);
return $promoteIds;
@ -228,9 +228,14 @@ class MarketEvent extends Controller
->where(['id' =>['in',$userAuth['data_president']],'level'=>1])
->group('company_id')
->getField('company_id',true);
if($dbres){
$companyIds = implode(",",$dbres);
}else{
$companyIds = "-1";
// dd($companyIds);
session('user_auth_company_ids', $companyIds);
return $companyIds;