...
|
...
|
@@ -128,8 +128,8 @@ class WechatPay extends HomeBase |
|
|
$arr1['expiration_time'] = time() + 365*24*60*60;
|
|
|
$user_province = Db::name('user_province')->where(['user_id'=>$data['user_id'],'province_id'=>$province_id])->find();
|
|
|
if(!empty($user_province)){
|
|
|
if($user['expiration_time'] > time()){
|
|
|
$arr1['expiration_time'] = $user['expiration_time'] + (365*24*60*60);
|
|
|
if($user_province['expiration_time'] > time()){
|
|
|
$arr1['expiration_time'] = $user_province['expiration_time'] + (365*24*60*60);
|
|
|
}
|
|
|
Db::name('user_province')->where(['id'=>$user_province['id']])->update($arr1);
|
|
|
}else{
|
...
|
...
|
|