jerry 1 ano atrás
pai
commit
30edb46290

+ 5 - 6
backendApi/modules/v1/controllers/BaseController.php

@@ -40,12 +40,11 @@ class BaseController extends \yii\rest\ActiveController {
         $parentBeforeAction = parent::beforeAction($action);
 
         $notFilterApi = [
-            '/v1/oauth/login',
-            '/v1/site/page-data',
-            '/v1/oauth/send-email-code',
-            '/v1/site/days-diff',
-            '/v1/site/captcha',
-            '/favicon.ico',
+            'v1/oauth/login',
+            'v1/site/page-data',
+            'v1/oauth/send-email-code',
+            'v1/site/days-diff',
+            'v1/site/captcha',
         ];
 
         $request = Yii::$app->request;

+ 11 - 11
frontendApi/modules/v1/controllers/BaseController.php

@@ -50,17 +50,17 @@ class BaseController extends \yii\rest\ActiveController {
         $this->forbiddenQuicklyUser();
 
         $notFilterApi = [
-            '/v1/oauth/login',
-            '/v1/oauth/is-login-verify',
-            '/v1/site/days-diff',
-            '/v1/shop/verify-approach-order',
-            '/v1/shop/logistics',
-            '/v1/shop/logistics-auto',
-            '/v1/shop/i-pay88',
-            '/v1/shop/re-query-payment',
-            '/v1/shop/upop-webhook',
-            '/v1/site/random-id',
-            '/v1/site/captcha',
+            'v1/oauth/login',
+            'v1/oauth/is-login-verify',
+            'v1/site/days-diff',
+            'v1/shop/verify-approach-order',
+            'v1/shop/logistics',
+            'v1/shop/logistics-auto',
+            'v1/shop/i-pay88',
+            'v1/shop/re-query-payment',
+            'v1/shop/upop-webhook',
+            'v1/site/random-id',
+            'v1/site/captcha',
         ];
 
         $request = Yii::$app->request;