单点登录成功没有回跳地址时,跳转upms首页
This commit is contained in:
parent
d7747abe46
commit
26ac0cf5f6
|
@ -175,6 +175,10 @@ public class SSOController {
|
|||
// token校验值
|
||||
RedisUtil.set(token, token, TIMEOUT);
|
||||
// 回调子系统
|
||||
if (StringUtils.isEmpty(backurl)) {
|
||||
result.put("result", true);
|
||||
result.put("data", "/");
|
||||
} else {
|
||||
String redirectUrl = backurl;
|
||||
if (backurl.contains("?")) {
|
||||
redirectUrl += "&token=" + token;
|
||||
|
@ -184,6 +188,7 @@ public class SSOController {
|
|||
_log.info("认证中心帐号通过,带token回跳:{}", redirectUrl);
|
||||
result.put("result", true);
|
||||
result.put("data", redirectUrl);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue