This commit is contained in:
wangjinlei
2021-05-14 11:01:06 +08:00
parent 15de0ec6e6
commit 657ebbf449
4 changed files with 99 additions and 11 deletions

View File

@@ -363,12 +363,13 @@ class Admin extends Controller {
}
//验证是否存在此用户并且存在对应关系
$this_reviewer = self::get_username($v['username']);
if ($this_reviewer == null && self::get_userByEmail($v['email']) != null) {
$mme = self::get_userByEmail($v['email']);
if ($this_reviewer == null && $mme != null) {
$er_data[] = [
'username' => $v['username'],
'realname' => $v['realname'],
'email' => $v['email'],
'reason' => 'Email occupied'
'reason' => 'Email occupied,and username is:'.$mme['account']
];
continue;
}