Преглед изворни кода

auth reduce redircet debug 8

zz пре 6 година
родитељ
комит
18c7abdf8a
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      app/Http/Middleware/ReadOauth.php

+ 2 - 1
app/Http/Middleware/ReadOauth.php

@@ -81,7 +81,7 @@ class ReadOauth
             }
             $this->share($request);
 
-            if (in_array($distribution_channel_id, explode(',', env('NEW_AUTH_CHANNEL_ID', 1)))) {
+            if (!in_array($distribution_channel_id, explode(',', env('NEW_AUTH_CHANNEL_ID', 1)))) {
                 //旧的授权
                 Cookie::queue('auth_redirect', urlencode($url), env('U_COOKIE_EXPIRE'));
                 $auth_v2_url = $this->authV2($request, $distribution_channel_id);
@@ -96,6 +96,7 @@ class ReadOauth
                 //新的授权
                 $options = $this->authReduceRedirect($request,$distribution_channel_id,$uri_send_order_id);
                 $app = new Application($options);
+                Log::info($options);
                 return $app->oauth->redirect();
             }
         }