|
@@ -114,6 +114,11 @@ class Pcadmin extends Backend
|
|
|
if(!empty($check)){
|
|
|
abort(500,'该手机号已被其他管理员注册');
|
|
|
}
|
|
|
+ $check = Db::name('pc_admin')->where('mobile',$adminmobile)->where('id','neq',$adminid)->find();
|
|
|
+ if(!empty($check)){
|
|
|
+ abort(500,'该手机号已被其他管理员注册');
|
|
|
+ }
|
|
|
+ $params['username'] = $adminmobile;
|
|
|
|
|
|
if (!empty($params['password'])) {
|
|
|
if (!\think\Validate::is($params['password'], "/^[\S]{6,30}$/")) {
|