Explorar el Código

没有员工信息

shish hace 4 años
padre
commit
bcd2586235
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      app-ghs/controllers/AuthController.php

+ 3 - 0
app-ghs/controllers/AuthController.php

@@ -373,6 +373,9 @@ class AuthController extends PublicController
         }
         $adminId = $admin['id'];
         $shopAdmin = ShopAdminService::getByCondition(['adminId' => $adminId, 'delStatus' => 0], true);
+        if (empty($shopAdmin)) {
+            util::fail('没有员工信息');
+        }
         if ($shopAdmin->status == 0) {
             util::fail("您的账号还未激活");
         }