shish 4 年之前
父节点
当前提交
1e0c19b01a
共有 1 个文件被更改,包括 2 次插入3 次删除
  1. 2 3
      app-hd/controllers/AuthController.php

+ 2 - 3
app-hd/controllers/AuthController.php

@@ -252,9 +252,8 @@ class AuthController extends PublicController
         if ($shopAdmin->status == 0) {
             util::fail("您的账号已冻结");
         }
-        $shopId = $shopAdmin->shopId ?? 0;
-        if (empty($shopId)) {
-            util::fail('您不是管理员');
+        if ($shopAdmin->delStatus == 1) {
+            util::fail("您的账号已删除");
         }
         $token = jwt::getNewToken($adminId);
         $shopAdmin->lastLogin = date("Y-m-d H:i:s");