lizhen_gitee пре 8 месеци
родитељ
комит
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);
-                }
+                }*/
             }
         }