作者 Cool
1 个管道 的构建 通过 耗费 1 秒

店铺页面报错修复

... ... @@ -46,8 +46,11 @@ class Shop extends Frontend
$userModel = new \app\index\model\User();
$user = $userModel->findData(['id'=>$user_id]);
if(!empty($user)){
$province_ids = explode(',',$user['province_ids']);
if($user['is_svip'] == '1' || ($user['is_vip'] == '1' && $province_ids && in_array($province_id,$province_ids))){
$province_ids = [];
if($user['province_ids']) {
$province_ids = explode(',',$user['province_ids']);
}
if($user['is_svip'] == '1' || ($user['is_vip'] == '1' && in_array($province_id,$province_ids))){
$encrypt = '1';
}
}
... ...