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

店铺页面报错修复

@@ -47,7 +47,7 @@ class Shop extends Frontend @@ -47,7 +47,7 @@ class Shop extends Frontend
47 $user = $userModel->findData(['id'=>$user_id]); 47 $user = $userModel->findData(['id'=>$user_id]);
48 if(!empty($user)){ 48 if(!empty($user)){
49 $province_ids = explode(',',$user['province_ids']); 49 $province_ids = explode(',',$user['province_ids']);
50 - if($user['is_svip'] == '1' || ($user['is_vip'] == '1' && in_array($province_id,$province_ids))){ 50 + if($user['is_svip'] == '1' || ($user['is_vip'] == '1' && $province_ids && in_array($province_id,$province_ids))){
51 $encrypt = '1'; 51 $encrypt = '1';
52 } 52 }
53 } 53 }