Explorar o código

Merge branch 'liuzj-1000975-dev' into test

liuzejian hai 1 ano
pai
achega
dcc87003c7

+ 1 - 1
modules/Channel/Http/Controllers/WechatOpenPlatformController.php

@@ -30,7 +30,7 @@ class WechatOpenPlatformController extends CatchController
         $app = WechatOpenPlatformService::buildApplication($componentInfo);
         $user_id = $request->input('user_id');
         $url = $app->createPreAuthorizationUrl(sprintf('%s/api/channel/openPlatform/auth/%s/%s',config('app.url'), $componentInfo->app_id, $user_id), []);
-        return redirect($url);
+        return view('wechat.openPlatform.preauth')->with('url', $url);
     }
 
     public function auth(Request $request, $component_appid, $user_id) {

+ 3 - 0
resources/views/wechat/openPlatform/preauth.blade.php

@@ -0,0 +1,3 @@
+<h1>
+    点击跳转, 正在跳转 : <a href="{{ $url }}">{{ $url }}</a>
+</h1>