作者 王晓刚
1 个管道 的构建 通过 耗费 0 秒

合并分支 'wxg' 到 'master'

调试购买vip



查看合并请求 !21
... ... @@ -99,7 +99,7 @@ class WechatPay extends HomeBase
}
$userModel = new \app\index\model\User();
$user = $userModel->findData(['id'=>$data['user_id']]);
cache('b',$user['is_vip']."&");
cache('b',$user['is_vip']."&".$user['id']);
// 用户是否支付成功
if($successful){
if($data['vip_type'] == '1'){
... ... @@ -109,7 +109,8 @@ class WechatPay extends HomeBase
}else{
$vip_passtime = time() + 365*24*60*60;
}
cache('c',$userModel->updateData(['id'=>$user['id']],['vip_passtime'=>$vip_passtime,'province_ids'=>",".$data['province_ids'].","]));
$userModel->updateData(['id'=>$user['id']],['vip_passtime'=>$vip_passtime,'province_ids'=>",".$data['province_ids'].","]);
cache('c',"QQQQ");
}else if($data['vip_type'] == '2'){
//超级会员
if($user['is_svip'] == '1'){
... ...