Forráskód Böngészése

关于token的检查

lizhen_gitee 8 hónapja
szülő
commit
b56a12d574
1 módosított fájl, 2 hozzáadás és 2 törlés
  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);
-                }
+                }*/
             }
         }