ソースを参照

Merge branch 'stabble'

zz 6 年 前
コミット
02f1229a48
1 ファイル変更3 行追加3 行削除
  1. 3 3
      app/Http/Middleware/ReadOauth.php

+ 3 - 3
app/Http/Middleware/ReadOauth.php

@@ -80,8 +80,8 @@ class ReadOauth
                 Cookie::queue('send_order_id', $uri_send_order_id, env('U_COOKIE_EXPIRE'), null, null, false, false);
             }
             $this->share($request);
-
-            if (!in_array($distribution_channel_id, explode(',', env('NEW_AUTH_CHANNEL_ID', 1)))) {
+            $old_auth = false;
+            if ($old_auth && !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,7 +96,7 @@ class ReadOauth
                 //新的授权
                 $options = $this->authReduceRedirect($request,$distribution_channel_id,$uri_send_order_id);
                 $app = new Application($options);
-                Log::info($options);
+                //Log::info($options);
                 return $app->oauth->redirect();
             }
         }