From 1752cf4941204fc6d726067f0accf5b453515af6 Mon Sep 17 00:00:00 2001 From: evoxwht <442384644@qq.com> Date: Mon, 22 May 2023 09:25:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=88=9B=E5=BB=BA=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E5=91=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crmeb/app/services/system/admin/SystemAdminServices.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crmeb/app/services/system/admin/SystemAdminServices.php b/crmeb/app/services/system/admin/SystemAdminServices.php index 8e2efbc68..b60a14096 100644 --- a/crmeb/app/services/system/admin/SystemAdminServices.php +++ b/crmeb/app/services/system/admin/SystemAdminServices.php @@ -258,7 +258,7 @@ class SystemAdminServices extends BaseServices unset($data['conf_pwd']); if (strlen(trim($data['pwd'])) < 6 || strlen(trim($data['pwd'])) > 32) { - return app('json')->fail(400762); + throw new AdminException(400762); } if ($this->dao->count(['account' => $data['account'], 'is_del' => 0])) { @@ -325,7 +325,7 @@ class SystemAdminServices extends BaseServices } if (strlen(trim($data['pwd'])) < 6 || strlen(trim($data['pwd'])) > 32) { - return app('json')->fail(400762); + throw new AdminException(400762); } $adminInfo->pwd = $this->passwordHash($data['pwd']);