소스 검색

Merge branch 'liuzj-1000975-dev' into test

liuzejian 1 년 전
부모
커밋
57fb9b55be
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      modules/Channel/Http/Controllers/WechatOpenPlatformController.php

+ 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')));
     }
 
     /**