|
@@ -29,7 +29,7 @@ class WechatOpenPlatformController extends CatchController
|
|
$componentInfo = WechatOpenPlatformService::getComponentInfoByCompanyUid($currentUser->id);
|
|
$componentInfo = WechatOpenPlatformService::getComponentInfoByCompanyUid($currentUser->id);
|
|
$app = WechatOpenPlatformService::buildApplication($componentInfo);
|
|
$app = WechatOpenPlatformService::buildApplication($componentInfo);
|
|
$user_id = $request->input('user_id');
|
|
$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;
|
|
return $url;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -63,7 +63,7 @@ class WechatOpenPlatformController extends CatchController
|
|
'authorizer_refresh_token' => $authorizer_refresh_token
|
|
'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')));
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|