正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
@@ -128,8 +128,8 @@ class WechatPay extends HomeBase | @@ -128,8 +128,8 @@ class WechatPay extends HomeBase | ||
128 | $arr1['expiration_time'] = time() + 365*24*60*60; | 128 | $arr1['expiration_time'] = time() + 365*24*60*60; |
129 | $user_province = Db::name('user_province')->where(['user_id'=>$data['user_id'],'province_id'=>$province_id])->find(); | 129 | $user_province = Db::name('user_province')->where(['user_id'=>$data['user_id'],'province_id'=>$province_id])->find(); |
130 | if(!empty($user_province)){ | 130 | if(!empty($user_province)){ |
131 | - if($user['expiration_time'] > time()){ | ||
132 | - $arr1['expiration_time'] = $user['expiration_time'] + (365*24*60*60); | 131 | + if($user_province['expiration_time'] > time()){ |
132 | + $arr1['expiration_time'] = $user_province['expiration_time'] + (365*24*60*60); | ||
133 | } | 133 | } |
134 | Db::name('user_province')->where(['id'=>$user_province['id']])->update($arr1); | 134 | Db::name('user_province')->where(['id'=>$user_province['id']])->update($arr1); |
135 | }else{ | 135 | }else{ |
-
请 注册 或 登录 后发表评论