Browse Source

关于token的检查

lizhen_gitee 8 months ago
parent
commit
b56a12d574
1 changed files with 2 additions and 2 deletions
  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);
-                }
+                }*/
             }
         }