diff --git a/Application/Admin/Controller/UserController.class.php b/Application/Admin/Controller/UserController.class.php index ab6d28ccf..55a3f4f52 100644 --- a/Application/Admin/Controller/UserController.class.php +++ b/Application/Admin/Controller/UserController.class.php @@ -293,7 +293,7 @@ class UserController extends AdminController $moblieUser = SM('UcenterMember', 'sys_')->field('id')->where(['mobile' => $_POST['mobile']])->find(); - if (!empty($moblieUser)) { + if (!empty($moblieUser)&&$_POST['mobile']) { $this->error('手机号码已存在!'); }