From bc975c99d64da51468051e151de31ed939dc2ce8 Mon Sep 17 00:00:00 2001 From: zhengyongxing Date: Mon, 17 May 2021 13:59:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=94=A8=E6=88=B7bug?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Controller/UserController.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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('手机号码已存在!'); }