Kaynağa Gözat

Merge branch 'liuzj-1000975-dev' into test

liuzejian 1 yıl önce
ebeveyn
işleme
57fb9b55be

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

@@ -29,7 +29,7 @@ class WechatOpenPlatformController extends CatchController
         $componentInfo = WechatOpenPlatformService::getComponentInfoByCompanyUid($currentUser->id);
         $app = WechatOpenPlatformService::buildApplication($componentInfo);
         $user_id = $request->input('user_id');
-        $url = $app->createPreAuthorizationUrl(url('/api/channel/openPlatform/auth/'.$componentInfo->app_id.'/'.$user_id), []);
+        $url = $app->createPreAuthorizationUrl(sprintf('%s/api/channel/openPlatform/auth/%s/%s',config('app.url'), $componentInfo->app_id, $user_id), []);
         return $url;
     }
 
@@ -63,7 +63,7 @@ class WechatOpenPlatformController extends CatchController
             'authorizer_refresh_token' => $authorizer_refresh_token
         ]);
 
-        return view('wechat.openPlatform.authSuccess')->with('url', url('/'));
+        return view('wechat.openPlatform.authSuccess')->with('url', sprintf('%s/#/user/advertiser',config('app.url')));
     }
 
     /**