Explorar el Código

你不是管理员

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

+ 0 - 4
app-hd/controllers/AuthController.php

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