用户检测
This commit is contained in:
parent
218c48ed7a
commit
2877d9f095
@ -16,7 +16,7 @@ class Users extends Base{
|
|||||||
|
|
||||||
// 前置方法执行列表
|
// 前置方法执行列表
|
||||||
protected $beforeActionList = [
|
protected $beforeActionList = [
|
||||||
'checkAuth' => ['except'=>'checklogin,login,check_login_name,get_puser_info,register,getverify,toregister,forgetpass,forgetpasst,forgetpasss,forgetpassf,findpass,getfindphone,resetpass,getphoneverifycode,checkuserphone']// 访问这些except下的方法不需要执行前置操作
|
'checkAuth' => ['except'=>'checklogin,login,check_login_name,check_real_name,get_puser_info,register,getverify,toregister,forgetpass,forgetpasst,forgetpasss,forgetpassf,findpass,getfindphone,resetpass,getphoneverifycode,checkuserphone']// 访问这些except下的方法不需要执行前置操作
|
||||||
];
|
];
|
||||||
/**
|
/**
|
||||||
* 我的亲人投资列表
|
* 我的亲人投资列表
|
||||||
@ -82,6 +82,13 @@ class Users extends Base{
|
|||||||
}
|
}
|
||||||
exit(json_encode(WSTCheckLoginKey($loginName)));
|
exit(json_encode(WSTCheckLoginKey($loginName)));
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* 检测会员名
|
||||||
|
*/
|
||||||
|
public function check_real_name(){
|
||||||
|
$loginName = input('post.householdName');
|
||||||
|
exit(json_encode(WSTCheckLoginKey2($loginName)));
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* 获取券值
|
* 获取券值
|
||||||
* @return [type] [description]
|
* @return [type] [description]
|
||||||
|
@ -381,6 +381,30 @@ function WSTCheckLoginKey($val,$userId = 0){
|
|||||||
return WSTReturn("友情提示:您好:该手机号已注册");
|
return WSTReturn("友情提示:您好:该手机号已注册");
|
||||||
}
|
}
|
||||||
if($dbo2->find()){
|
if($dbo2->find()){
|
||||||
|
return WSTReturn("友情提示:您好:已有同姓名注册我商城,请核实您是否早已注册。");
|
||||||
|
}
|
||||||
|
return WSTReturn("该登录账号可用",1);
|
||||||
|
|
||||||
|
// $rs = $dbo->count();
|
||||||
|
// if($rs==0){
|
||||||
|
// $lm_info = getLMUserByName($val);//获取联盟会员信息
|
||||||
|
// if($lm_info){
|
||||||
|
// return WSTReturn("该登录账号已注册联盟用户");
|
||||||
|
// }
|
||||||
|
// return WSTReturn("该登录账号可用",1);
|
||||||
|
// }
|
||||||
|
// return WSTReturn("对不起,登录账号已存在");
|
||||||
|
}
|
||||||
|
function WSTCheckLoginKey2($val,$userId = 0){
|
||||||
|
if($val=='')return WSTReturn("户主姓名不能为空");
|
||||||
|
if(!WSTCheckFilterWords($val,WSTConf("CONF.registerLimitWords"))){
|
||||||
|
return WSTReturn("户主姓名包含非法字符");
|
||||||
|
}
|
||||||
|
$dbo = Db::name('users')->where(["householdName"=>['=',$val]]);
|
||||||
|
if($userId>0){
|
||||||
|
$dbo->where("userId", "<>", $userId);
|
||||||
|
}
|
||||||
|
if($dbo->find()){
|
||||||
return WSTReturn("友情提示:您好:已有同姓名注册我商城,请核实您的户主是否早已注册。");
|
return WSTReturn("友情提示:您好:已有同姓名注册我商城,请核实您的户主是否早已注册。");
|
||||||
}
|
}
|
||||||
return WSTReturn("该登录账号可用",1);
|
return WSTReturn("该登录账号可用",1);
|
||||||
|
@ -294,6 +294,7 @@ class Users extends Base{
|
|||||||
// return WSTReturn('注册频繁');
|
// return WSTReturn('注册频繁');
|
||||||
$data = array();
|
$data = array();
|
||||||
$data['loginName'] = input("post.loginName");
|
$data['loginName'] = input("post.loginName");
|
||||||
|
$data['householdName'] = input("post.householdName");
|
||||||
$data['loginPwd'] = input("post.loginPwd");
|
$data['loginPwd'] = input("post.loginPwd");
|
||||||
$data['reUserPwd'] = $data['loginPwd'] ;//input("post.reUserPwd");
|
$data['reUserPwd'] = $data['loginPwd'] ;//input("post.reUserPwd");
|
||||||
$data['payPwd'] = input("post.payPwd");
|
$data['payPwd'] = input("post.payPwd");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user