|
@@ -207,7 +207,11 @@ public class SsoServiceImpl implements SsoService {
|
|
Optional.ofNullable(sysUserRole).orElseThrow(() -> ExceptionResultEnum.ERROR.exception("用户没有该角色"));
|
|
Optional.ofNullable(sysUserRole).orElseThrow(() -> ExceptionResultEnum.ERROR.exception("用户没有该角色"));
|
|
|
|
|
|
long timestamp = System.currentTimeMillis();
|
|
long timestamp = System.currentTimeMillis();
|
|
- String questionLoginUrl = dictionaryConfig.casDomain().getQuestionHostUrl() + dictionaryConfig.casDomain().getQuestionLoginUri();
|
|
|
|
|
|
+ String questionLoginUrl = dictionaryConfig.casDomain().getQuestionHostUrl();
|
|
|
|
+ if (questionLoginUrl.contains("*")) {
|
|
|
|
+ questionLoginUrl = questionLoginUrl.replace("*", basicSchool.getCode());
|
|
|
|
+ }
|
|
|
|
+ questionLoginUrl = questionLoginUrl + dictionaryConfig.casDomain().getQuestionLoginUri();
|
|
String path = dictionaryConfig.casDomain().getQuestionLoginUri();
|
|
String path = dictionaryConfig.casDomain().getQuestionLoginUri();
|
|
String signature = SignatureEntity.build(SignatureType.SECRET, SystemConstant.GET, path, timestamp, basicSchool.getAccessKey(), basicSchool.getAccessSecret());
|
|
String signature = SignatureEntity.build(SignatureType.SECRET, SystemConstant.GET, path, timestamp, basicSchool.getAccessKey(), basicSchool.getAccessSecret());
|
|
signature = URLEncoder.encode(signature, SystemConstant.CHARSET_NAME);
|
|
signature = URLEncoder.encode(signature, SystemConstant.CHARSET_NAME);
|