Browse Source

jump http

zz 6 năm trước cách đây
mục cha
commit
cf094c4e27
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      app/Http/Controllers/Wap/User/CoflController.php

+ 2 - 1
app/Http/Controllers/Wap/User/CoflController.php

@@ -29,7 +29,8 @@ class CoflController extends Controller
         //授权
         $params = $request->except('_url');
         if(empty($openid)){
-            $url = str_replace('http://', env('PROTOCOL') . '://', url()->current() . '?' . http_build_query($params));
+            //$url = str_replace('http://', env('PROTOCOL') . '://', url()->current() . '?' . http_build_query($params));
+            $url = url()->current() . '?' . http_build_query($params);
             $params['redirect_url'] = urlencode($url);
             $app = new Application($this->auth($params));
             return $app->oauth->redirect();