|
@@ -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();
|
|
|
}
|
|
|
}
|