认证时检测

This commit is contained in:
Jerry Yan 2020-12-03 11:04:02 +08:00
parent 49203e1d7a
commit f12ef7f39d

View File

@ -104,6 +104,18 @@ class Auth extends Base{
}
//$loginName = WSTRandomLoginName($log
$data['status'] = 0;
$apm = new M();
$apm->setTable('auth_personal');
try{
if ($m->where('householdIdCard', '=', $data['householdIdCard'])->count()>0) {
exit(jsonReturn('友情提示:您好:已有同身份证号用户注册我商城,请联系您的家人查询“用户名”和相关密码。'));
}
if ($m->where('householdName', '=', $data['householdName'])->count()>0) {
exit(jsonReturn('友情提示:您好:已有同姓名注册我商城,请联系您的家人查询“用户名”和相关密码。'));
}
} catch (\Exception $e) {
errLog($e);
}
}
unset($data['authId']);