|
|
@@ -80,7 +80,7 @@ public class AuthorizationController {
|
|
|
|
|
|
private final WxOpenPlatYHLXLoginConfig wxOpenPlatYHLXLoginConfig;
|
|
|
|
|
|
- private EnvCommonService envCommonService;
|
|
|
+ private final EnvCommonService envCommonService;
|
|
|
|
|
|
private final OrderDonService orderDonService;
|
|
|
|
|
|
@@ -246,12 +246,8 @@ public class AuthorizationController {
|
|
|
*/
|
|
|
@GetMapping("/wx/login/redirect")
|
|
|
public void wxLoginRedirect(String code, String state, HttpServletResponse response) throws Exception {
|
|
|
- String env = envCommonService.getEnv();
|
|
|
- String domain = "netflix.tw.cn";
|
|
|
- if ("dev".equals(env)) {
|
|
|
- domain = "inside.yicanggongyi.com";
|
|
|
- }
|
|
|
- String url = String.format("https://%/8081/api/weChat/baseRedirect?code=%s&state=%s", domain, code, state);
|
|
|
+ String domain = envCommonService.getHost();
|
|
|
+ String url = String.format("%sweChat/baseRedirect?code=%s&state=%s", domain, code, state);
|
|
|
response.sendRedirect(url);
|
|
|
}
|
|
|
|