ソースを参照

关于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);
-                }
+                }*/
             }
         }