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

调试购买vip

... ... @@ -107,7 +107,7 @@ class WechatPay extends HomeBase
}else{
$vip_passtime = time() + 365*24*60*60;
}
$userModel->updateData(['vip_passtime'=>$vip_passtime,'province_ids'=>$data['province_ids']]);
$userModel->updateData(['vip_passtime'=>$vip_passtime,'province_ids'=>",".$data['province_ids'].","]);
}else if($data['vip_type'] == '2'){
//超级会员
if($user['is_svip'] == '1'){
... ...
... ... @@ -13,6 +13,7 @@ class User extends Model
{
public function findData($where){
$data = $this->where($where)->find();
if(!empty($data)){
//判断是否为会员
$is_vip = '2';
if(!empty($data['vip_passtime'])){
... ... @@ -28,6 +29,7 @@ class User extends Model
}
$data['is_vip'] = $is_vip;
$data['is_svip'] = $is_svip;
}
return $data;
}
public function updateData($where,$data){
... ...