fix: 修复微信、钉钉跳转bug

This commit is contained in:
曾文豪
2023-06-13 09:42:15 +08:00
parent e0b1720c4a
commit 4254bf47bf
2 changed files with 2 additions and 2 deletions

View File

@@ -159,7 +159,7 @@ public class LoginController {
if (StrUtil.isEmpty(extra)) { if (StrUtil.isEmpty(extra)) {
extra = ""; extra = "";
} }
String configUrl = globalConfig.buildPath("/auth/wxmp/oauth2/" + service + "?extra=" + extra); String configUrl = globalConfig.buildPath("/login/wxmp/oauth2/" + service + "?extra=" + extra);
String authorizationUrl = platformWxmpConfig.buildAuthorizationUrl(service, configUrl, "snsapi_userinfo"); String authorizationUrl = platformWxmpConfig.buildAuthorizationUrl(service, configUrl, "snsapi_userinfo");
response.sendRedirect(authorizationUrl); response.sendRedirect(authorizationUrl);
} }

View File

@@ -24,7 +24,7 @@
corpId: getQueryString("corpId"), corpId: getQueryString("corpId"),
onSuccess: function (result) { onSuccess: function (result) {
let search = window.location.search + "&code=" + result.code; let search = window.location.search + "&code=" + result.code;
window.location.href = "/auth/ding/oauth2/" + getQueryString("service") + search; window.location.href = "/login/ding/oauth2/" + getQueryString("service") + search;
}, },
onFail: function (err) { onFail: function (err) {
window.location.href = "./error.html?message=" + JSON.stringify(err); window.location.href = "./error.html?message=" + JSON.stringify(err);