|
|
|
@ -211,8 +211,7 @@ public class ResourcesApplicationService extends CoreBaseService<ResourcesApplic
|
|
|
|
|
PageQuery ret = resourcesApplicationDao.queryMyApplicationByConditionQuery(query);
|
|
|
|
|
List<ResourcesApplication> list = ret.getList();
|
|
|
|
|
CollectionUtil.emptyIfNull(list).forEach(item -> {
|
|
|
|
|
String applicationLink = item.getApplicationLink();
|
|
|
|
|
applicationLink = makeHaveKeyStr(applicationLink);
|
|
|
|
|
String applicationLink = makeHaveKeyStr(item.getApplicationLink());
|
|
|
|
|
// 根据应用设置的Key生成单点登录的真实链接
|
|
|
|
|
String realUrl = applicationLink.concat(getKeyByCurrentUser(item.getLinkSecretKey()));
|
|
|
|
|
item.set("realUrl", realUrl);
|
|
|
|
@ -269,6 +268,7 @@ public class ResourcesApplicationService extends CoreBaseService<ResourcesApplic
|
|
|
|
|
* @Date: 2022/12/11 17:21
|
|
|
|
|
*/
|
|
|
|
|
public String makeHaveKeyStr(String link) {
|
|
|
|
|
if (ObjectUtil.isEmpty(link)) { return ""; }
|
|
|
|
|
final String key = "key=", sequence = "?";
|
|
|
|
|
String query = URLUtil.toURI(link).getQuery();
|
|
|
|
|
boolean isHaveKey = Arrays.stream(query.split("&")).anyMatch(item -> item.contains(key));
|
|
|
|
|