This commit is contained in:
Jerry Yan 2020-12-18 17:57:42 +08:00
parent 0466f2f43e
commit 445504d83b

View File

@ -400,7 +400,7 @@ function WSTCheckLoginKey2($val,$userId = 0){
if(!WSTCheckFilterWords($val,WSTConf("CONF.registerLimitWords"))){ if(!WSTCheckFilterWords($val,WSTConf("CONF.registerLimitWords"))){
return WSTReturn("户主姓名包含非法字符"); return WSTReturn("户主姓名包含非法字符");
} }
$dbo = Db::name('users')->where(["householdName"=>['=',$val]]); $dbo = Db::name('auth_personal')->where(["householdName"=>['=',$val]]);
if($userId>0){ if($userId>0){
$dbo->where("userId", "<>", $userId); $dbo->where("userId", "<>", $userId);
} }