正在显示
1 个修改的文件
包含
3 行增加
和
2 行删除
@@ -99,7 +99,7 @@ class WechatPay extends HomeBase | @@ -99,7 +99,7 @@ class WechatPay extends HomeBase | ||
99 | } | 99 | } |
100 | $userModel = new \app\index\model\User(); | 100 | $userModel = new \app\index\model\User(); |
101 | $user = $userModel->findData(['id'=>$data['user_id']]); | 101 | $user = $userModel->findData(['id'=>$data['user_id']]); |
102 | - cache('b',$user['is_vip']."&"); | 102 | + cache('b',$user['is_vip']."&".$user['id']); |
103 | // 用户是否支付成功 | 103 | // 用户是否支付成功 |
104 | if($successful){ | 104 | if($successful){ |
105 | if($data['vip_type'] == '1'){ | 105 | if($data['vip_type'] == '1'){ |
@@ -109,7 +109,8 @@ class WechatPay extends HomeBase | @@ -109,7 +109,8 @@ class WechatPay extends HomeBase | ||
109 | }else{ | 109 | }else{ |
110 | $vip_passtime = time() + 365*24*60*60; | 110 | $vip_passtime = time() + 365*24*60*60; |
111 | } | 111 | } |
112 | - cache('c',$userModel->updateData(['id'=>$user['id']],['vip_passtime'=>$vip_passtime,'province_ids'=>",".$data['province_ids'].","])); | 112 | + $userModel->updateData(['id'=>$user['id']],['vip_passtime'=>$vip_passtime,'province_ids'=>",".$data['province_ids'].","]); |
113 | + cache('c',"QQQQ"); | ||
113 | }else if($data['vip_type'] == '2'){ | 114 | }else if($data['vip_type'] == '2'){ |
114 | //超级会员 | 115 | //超级会员 |
115 | if($user['is_svip'] == '1'){ | 116 | if($user['is_svip'] == '1'){ |
-
请 注册 或 登录 后发表评论