Merge pull request '优化bug' (#463) from hotfix/market_bug into master

Reviewed-on: http://8.136.139.249:3000/wmtx/platform/pulls/463
master
廖金灵 3 years ago
commit ccea1da792

@ -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);
$companyIds = implode(",",$dbres);
if($dbres){
$companyIds = implode(",",$dbres);
}else{
$companyIds = "-1";
}
}
}
// dd($companyIds);
session('user_auth_company_ids', $companyIds);
return $companyIds;
}

Loading…
Cancel
Save