evoxwht 2 лет назад
Родитель
Сommit
1752cf4941
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      crmeb/app/services/system/admin/SystemAdminServices.php

+ 2 - 2
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']);