瀏覽代碼

关于token的检查

lizhen_gitee 9 月之前
父節點
當前提交
b56a12d574
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      application/common/controller/Api.php

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

@@ -154,9 +154,9 @@ class Api
             if ($token) {
                 $this->auth->init($token);
                 //传就必须传对
-                if (!$this->auth->isLogin()) {
+                /*if (!$this->auth->isLogin()) {
                     $this->error(__('Please login first'), null, 401);
-                }
+                }*/
             }
         }