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

合并分支 'wxg' 到 'master'

调试购买vip



查看合并请求 !19
@@ -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 /**