Commit 44ec4379 authored by 赵啸非's avatar 赵啸非

添加设备相关

parent 3b37f265
Pipeline #2537 canceled with stages
...@@ -371,13 +371,14 @@ public class HomeController extends BaseJsonBodyController { ...@@ -371,13 +371,14 @@ public class HomeController extends BaseJsonBodyController {
appPdu.setSize(-1); appPdu.setSize(-1);
Rest<RespData<List<AppPdu>>> appRest = appFeign.list(appPdu); Rest<RespData<List<AppPdu>>> appRest = appFeign.list(appPdu);
String domainUrl = UrlBuilder.ofHttp(serverName).setPort(serverPort > 0 ? serverPort: 11078).build(); String domainUrl = UrlBuilder.ofHttp(serverName).setPort(serverPort > 0 ? serverPort: 11078).build();
String domainUrl1 = StrUtil.sub(domainUrl, 0, domainUrl.length() - 1);
log.info("appRest:"+JSON.toJSONString(appRest)); log.info("appRest:"+JSON.toJSONString(appRest));
if (appRest.getCode() == YesNoEnum.YES.getValue()) { if (appRest.getCode() == YesNoEnum.YES.getValue()) {
collect = appRest.getData().getData().stream().filter(f -> appWhiteSet.contains(f.getAppName())) collect = appRest.getData().getData().stream().filter(f -> appWhiteSet.contains(f.getAppName()))
.peek(item->{ .peek(item->{
item.setCustUrl(UrlBuilder.ofHttp(domainUrl).addPath(item.getCustUrl()).build()); item.setCustUrl(UrlBuilder.ofHttp(domainUrl1).addPath(item.getCustUrl()).build());
item.setAppIconPath(UrlBuilder.ofHttp(domainUrl).addPath(item.getAppIconPath()).build()); item.setAppIconPath(UrlBuilder.ofHttp(domainUrl1).addPath(item.getAppIconPath()).build());
log.info(item.getCustUrl()); log.info(item.getCustUrl());
log.info(item.getAppIconPath()); log.info(item.getAppIconPath());
}).collect(Collectors.toList()); }).collect(Collectors.toList());
......
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