...
|
...
|
@@ -109,7 +109,7 @@ class WechatPay extends HomeBase |
|
|
}else{
|
|
|
$vip_passtime = time() + 365*24*60*60;
|
|
|
}
|
|
|
$userModel->updateData(['id'=>$user['id']],['vip_passtime'=>$vip_passtime,'province_ids'=>",".$data['province_ids'].","]);
|
|
|
cache('c',$userModel->updateData(['id'=>$user['id']],['vip_passtime'=>$vip_passtime,'province_ids'=>",".$data['province_ids'].","]));
|
|
|
}else if($data['vip_type'] == '2'){
|
|
|
//超级会员
|
|
|
if($user['is_svip'] == '1'){
|
...
|
...
|
@@ -117,14 +117,14 @@ class WechatPay extends HomeBase |
|
|
}else{
|
|
|
$svip_passtime = time() + 365*24*60*60;
|
|
|
}
|
|
|
$userModel->updateData(['id'=>$user['id']],['svip_passtime'=>$svip_passtime]);
|
|
|
cache('d',$userModel->updateData(['id'=>$user['id']],['svip_passtime'=>$svip_passtime]));
|
|
|
}
|
|
|
$arr['status'] = "2";
|
|
|
$arr['paytime'] = time();
|
|
|
}else{
|
|
|
$arr['status'] = "1";
|
|
|
}
|
|
|
$vipOrderModel->updateData(['id'=>$data['id']],$arr);
|
|
|
cache('e',$vipOrderModel->updateData(['id'=>$data['id']],$arr));
|
|
|
return true; // 返回处理完成
|
|
|
});
|
|
|
|
...
|
...
|
@@ -134,6 +134,9 @@ class WechatPay extends HomeBase |
|
|
public function demo(){
|
|
|
dump(cache('a'));
|
|
|
dump(cache('b'));
|
|
|
dump(cache('c'));
|
|
|
dump(cache('d'));
|
|
|
dump(cache('e'));
|
|
|
}
|
|
|
|
|
|
/**
|
...
|
...
|
|