作者 anyv
1 个管道 的构建 通过 耗费 0 秒

4

... ... @@ -740,6 +740,10 @@ class PersonalcenterController extends WeChatBaseController{
$uid = cmf_get_current_user_id();
$code = session('code');
if($code == $_POST['yzm']){
$user = Db::name('my_user') -> where('uid',$uid) -> find();
if(empty($user['phone'])){
Db::name('my_user') -> where('uid',$uid) -> update(['phone'=>$_POST['phone']]);
}
Db::name('my_user') -> where('uid',$uid) -> update(['is_withdrawal'=>2]);
return true;
}else{
... ...
... ... @@ -32,9 +32,9 @@ class ShareController extends WeChatBaseController
if($my_user['is_pro'] != 1){
$this->error('无权限','','','');
}
if(empty($my_user['phone'])){
/* if(empty($my_user['phone'])){
$this->redirect('information');
}
}*/
//判断有没有生成过
// if(!file_exists('./upload/poster/poster_'.$user_id.".png")){
$url = $this->get_url($my_user['id'],$my_user['status']);
... ...
... ... @@ -203,7 +203,8 @@
if(data){
window.location.href = "{:url('Shopcart/shop_cart')}";
}else{
alert('非上级业务员书籍不能购买');
alert('不在此区域销售');
window.location.href = "{:url('Index/index')}";
}
});
... ... @@ -230,7 +231,8 @@
}
});
}else{
alert('非上级业务员书籍不能购买');
alert('不在此区域销售');
window.location.href = "{:url('Index/index')}";
}
});
... ... @@ -261,7 +263,8 @@
});
}else{
alert('非上级业务员书籍不能收藏');
alert('不在此区域销售');
window.location.href = "{:url('Index/index')}";
}
});
... ... @@ -287,7 +290,8 @@
}
});
}else{
alert('非上级业务员书籍不能加入购物车');
alert('不在此区域销售');
window.location.href = "{:url('Index/index')}";
}
});
... ...
... ... @@ -216,7 +216,7 @@
}else if(yzm == ''){
alert('请输入验证码');
}else{
$.post("{:url('Personalcenter/is_money_code')}",{yzm:yzm},function(data){
$.post("{:url('Personalcenter/is_money_code')}",{yzm:yzm,phone:phone},function(data){
console.log(data)
if(data != false){
$(".tx_maskPhone").css("display","none");
... ...