Commit 7de0de1a authored by 赵啸非's avatar 赵啸非

添加设备相关信息

parent 6ab61153
Pipeline #2654 failed with stages
......@@ -386,13 +386,14 @@ public class HomeController extends BaseJsonBodyController {
appPdu.setSize(-1);
Rest<RespData<List<AppPdu>>> appRest = appFeign.list(appPdu);
String domainUrl = UrlBuilder.ofHttp(serverName).setPort(serverPort > 0 ? serverPort : 11078).build();
String domainUrl1 = StrUtil.sub(domainUrl, 0, domainUrl.length() - 1);
/// String domainUrl1 = StrUtil.sub(domainUrl, 0, domainUrl.length());
log.info("appRest:" + JSON.toJSONString(appRest));
log.info("domainUrl:" + domainUrl);
if (appRest.getCode() == YesNoEnum.YES.getValue()) {
collect = appRest.getData().getData().stream().filter(f -> appWhiteSet.contains(f.getAppName()))
.peek(item -> {
item.setCustUrl(UrlBuilder.ofHttp(domainUrl1).addPath(item.getCustUrl()).build());
item.setCustUrl(UrlBuilder.ofHttp(domainUrl).addPath(item.getCustUrl()).build());
//item.setAppIconPath(UrlBuilder.ofHttp(domainUrl1).addPath(item.getAppIconPath()).build());
log.info(item.getCustUrl());
log.info(item.getAppIconPath());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment