正在显示
4 个修改的文件
包含
15 行增加
和
7 行删除
@@ -740,6 +740,10 @@ class PersonalcenterController extends WeChatBaseController{ | @@ -740,6 +740,10 @@ class PersonalcenterController extends WeChatBaseController{ | ||
740 | $uid = cmf_get_current_user_id(); | 740 | $uid = cmf_get_current_user_id(); |
741 | $code = session('code'); | 741 | $code = session('code'); |
742 | if($code == $_POST['yzm']){ | 742 | if($code == $_POST['yzm']){ |
743 | + $user = Db::name('my_user') -> where('uid',$uid) -> find(); | ||
744 | + if(empty($user['phone'])){ | ||
745 | + Db::name('my_user') -> where('uid',$uid) -> update(['phone'=>$_POST['phone']]); | ||
746 | + } | ||
743 | Db::name('my_user') -> where('uid',$uid) -> update(['is_withdrawal'=>2]); | 747 | Db::name('my_user') -> where('uid',$uid) -> update(['is_withdrawal'=>2]); |
744 | return true; | 748 | return true; |
745 | }else{ | 749 | }else{ |
@@ -32,9 +32,9 @@ class ShareController extends WeChatBaseController | @@ -32,9 +32,9 @@ class ShareController extends WeChatBaseController | ||
32 | if($my_user['is_pro'] != 1){ | 32 | if($my_user['is_pro'] != 1){ |
33 | $this->error('无权限','','',''); | 33 | $this->error('无权限','','',''); |
34 | } | 34 | } |
35 | - if(empty($my_user['phone'])){ | 35 | + /* if(empty($my_user['phone'])){ |
36 | $this->redirect('information'); | 36 | $this->redirect('information'); |
37 | - } | 37 | + }*/ |
38 | //判断有没有生成过 | 38 | //判断有没有生成过 |
39 | // if(!file_exists('./upload/poster/poster_'.$user_id.".png")){ | 39 | // if(!file_exists('./upload/poster/poster_'.$user_id.".png")){ |
40 | $url = $this->get_url($my_user['id'],$my_user['status']); | 40 | $url = $this->get_url($my_user['id'],$my_user['status']); |
@@ -203,7 +203,8 @@ | @@ -203,7 +203,8 @@ | ||
203 | if(data){ | 203 | if(data){ |
204 | window.location.href = "{:url('Shopcart/shop_cart')}"; | 204 | window.location.href = "{:url('Shopcart/shop_cart')}"; |
205 | }else{ | 205 | }else{ |
206 | - alert('非上级业务员书籍不能购买'); | 206 | + alert('不在此区域销售'); |
207 | + window.location.href = "{:url('Index/index')}"; | ||
207 | } | 208 | } |
208 | }); | 209 | }); |
209 | 210 | ||
@@ -230,7 +231,8 @@ | @@ -230,7 +231,8 @@ | ||
230 | } | 231 | } |
231 | }); | 232 | }); |
232 | }else{ | 233 | }else{ |
233 | - alert('非上级业务员书籍不能购买'); | 234 | + alert('不在此区域销售'); |
235 | + window.location.href = "{:url('Index/index')}"; | ||
234 | } | 236 | } |
235 | }); | 237 | }); |
236 | 238 | ||
@@ -261,7 +263,8 @@ | @@ -261,7 +263,8 @@ | ||
261 | 263 | ||
262 | }); | 264 | }); |
263 | }else{ | 265 | }else{ |
264 | - alert('非上级业务员书籍不能收藏'); | 266 | + alert('不在此区域销售'); |
267 | + window.location.href = "{:url('Index/index')}"; | ||
265 | } | 268 | } |
266 | }); | 269 | }); |
267 | 270 | ||
@@ -287,7 +290,8 @@ | @@ -287,7 +290,8 @@ | ||
287 | } | 290 | } |
288 | }); | 291 | }); |
289 | }else{ | 292 | }else{ |
290 | - alert('非上级业务员书籍不能加入购物车'); | 293 | + alert('不在此区域销售'); |
294 | + window.location.href = "{:url('Index/index')}"; | ||
291 | } | 295 | } |
292 | }); | 296 | }); |
293 | 297 |
@@ -216,7 +216,7 @@ | @@ -216,7 +216,7 @@ | ||
216 | }else if(yzm == ''){ | 216 | }else if(yzm == ''){ |
217 | alert('请输入验证码'); | 217 | alert('请输入验证码'); |
218 | }else{ | 218 | }else{ |
219 | - $.post("{:url('Personalcenter/is_money_code')}",{yzm:yzm},function(data){ | 219 | + $.post("{:url('Personalcenter/is_money_code')}",{yzm:yzm,phone:phone},function(data){ |
220 | console.log(data) | 220 | console.log(data) |
221 | if(data != false){ | 221 | if(data != false){ |
222 | $(".tx_maskPhone").css("display","none"); | 222 | $(".tx_maskPhone").css("display","none"); |
-
请 注册 或 登录 后发表评论