正在显示
1 个修改的文件
包含
6 行增加
和
3 行删除
@@ -109,7 +109,7 @@ class WechatPay extends HomeBase | @@ -109,7 +109,7 @@ class WechatPay extends HomeBase | ||
109 | }else{ | 109 | }else{ |
110 | $vip_passtime = time() + 365*24*60*60; | 110 | $vip_passtime = time() + 365*24*60*60; |
111 | } | 111 | } |
112 | - $userModel->updateData(['id'=>$user['id']],['vip_passtime'=>$vip_passtime,'province_ids'=>",".$data['province_ids'].","]); | 112 | + cache('c',$userModel->updateData(['id'=>$user['id']],['vip_passtime'=>$vip_passtime,'province_ids'=>",".$data['province_ids'].","])); |
113 | }else if($data['vip_type'] == '2'){ | 113 | }else if($data['vip_type'] == '2'){ |
114 | //超级会员 | 114 | //超级会员 |
115 | if($user['is_svip'] == '1'){ | 115 | if($user['is_svip'] == '1'){ |
@@ -117,14 +117,14 @@ class WechatPay extends HomeBase | @@ -117,14 +117,14 @@ class WechatPay extends HomeBase | ||
117 | }else{ | 117 | }else{ |
118 | $svip_passtime = time() + 365*24*60*60; | 118 | $svip_passtime = time() + 365*24*60*60; |
119 | } | 119 | } |
120 | - $userModel->updateData(['id'=>$user['id']],['svip_passtime'=>$svip_passtime]); | 120 | + cache('d',$userModel->updateData(['id'=>$user['id']],['svip_passtime'=>$svip_passtime])); |
121 | } | 121 | } |
122 | $arr['status'] = "2"; | 122 | $arr['status'] = "2"; |
123 | $arr['paytime'] = time(); | 123 | $arr['paytime'] = time(); |
124 | }else{ | 124 | }else{ |
125 | $arr['status'] = "1"; | 125 | $arr['status'] = "1"; |
126 | } | 126 | } |
127 | - $vipOrderModel->updateData(['id'=>$data['id']],$arr); | 127 | + cache('e',$vipOrderModel->updateData(['id'=>$data['id']],$arr)); |
128 | return true; // 返回处理完成 | 128 | return true; // 返回处理完成 |
129 | }); | 129 | }); |
130 | 130 | ||
@@ -134,6 +134,9 @@ class WechatPay extends HomeBase | @@ -134,6 +134,9 @@ class WechatPay extends HomeBase | ||
134 | public function demo(){ | 134 | public function demo(){ |
135 | dump(cache('a')); | 135 | dump(cache('a')); |
136 | dump(cache('b')); | 136 | dump(cache('b')); |
137 | + dump(cache('c')); | ||
138 | + dump(cache('d')); | ||
139 | + dump(cache('e')); | ||
137 | } | 140 | } |
138 | 141 | ||
139 | /** | 142 | /** |
-
请 注册 或 登录 后发表评论