作者 刘朕
1 个管道 的构建 通过 耗费 0 秒

合并分支 'Branch_liuzhen' 到 'master'

店铺页面报错修复



查看合并请求 !102
@@ -46,8 +46,11 @@ class Shop extends Frontend @@ -46,8 +46,11 @@ class Shop extends Frontend
46 $userModel = new \app\index\model\User(); 46 $userModel = new \app\index\model\User();
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']);  
50 - if($user['is_svip'] == '1' || ($user['is_vip'] == '1' && $province_ids && in_array($province_id,$province_ids))){ 49 + $province_ids = [];
  50 + if($user['province_ids']) {
  51 + $province_ids = explode(',',$user['province_ids']);
  52 + }
  53 + if($user['is_svip'] == '1' || ($user['is_vip'] == '1' && in_array($province_id,$province_ids))){
51 $encrypt = '1'; 54 $encrypt = '1';
52 } 55 }
53 } 56 }