WIN-2308041133\Administrator 7 月之前
父節點
當前提交
e6511eefcc
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      application/common/controller/Api.php

+ 3 - 3
application/common/controller/Api.php

@@ -156,9 +156,9 @@ class Api
             //初始化
             $this->auth->init($token);
             //检测是否登录
-            if (!$this->auth->isLogin()) {
-                $this->error(__('Please login first'), null, 401);
-            }
+//            if (!$this->auth->isLogin()) {
+//                $this->error(__('Please login first'), null, 401);
+//            }
             // 判断是否需要验证权限
             if (!$this->auth->match($this->noNeedRight)) {
                 // 判断控制器和方法判断是否有对应权限