Commit e6f9ad9a authored by 赵啸非's avatar 赵啸非

添加设备相关

parent 17862e33
Pipeline #2535 canceled with stages
...@@ -370,16 +370,17 @@ public class HomeController extends BaseJsonBodyController { ...@@ -370,16 +370,17 @@ public class HomeController extends BaseJsonBodyController {
appPdu.setSiteId(siteId); appPdu.setSiteId(siteId);
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();
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.setAppIconPath(UrlBuilder.ofHttp(domainUrl).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());
} }
} catch (Exception e) { } catch (Exception e) {
code = VALUE_RESULT_FAILURE; code = VALUE_RESULT_FAILURE;
......
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