Commit 0a0d6061 authored by 赵啸非's avatar 赵啸非

修改应用集市应用动态获取

parent ccfa3d9c
...@@ -119,17 +119,17 @@ public class AppServiceImpl extends AbstractCRUDServiceImpl<AppDao, AppEntity, L ...@@ -119,17 +119,17 @@ public class AppServiceImpl extends AbstractCRUDServiceImpl<AppDao, AppEntity, L
if (!ObjectUtils.isEmpty(siteEntity)) { if (!ObjectUtils.isEmpty(siteEntity)) {
//请求地址 http://domian/app/siteCode/appcode/html //请求地址 http://domian/app/siteCode/appcode/html
item.setCustUrl(UrlBuilder.of(domainUrl) item.setCustUrl(UrlBuilder.ofHttp(params.getServerName()).setPort(params.getServerPort() > 0 ? params.getServerPort() : 11078)
.addPath(CUSTAPP_ROOT_PATH) .addPath(CUSTAPP_ROOT_PATH)
.addPath(siteEntity.getSiteCode()) .addPath(siteEntity.getSiteCode())
.addPath(item.getAppCode()) .addPath(item.getAppCode())
.addPath(item.getVersion().toString()) .addPath(item.getVersion().toString())
.toString()); .build());
} else { } else {
item.setCustUrl(""); item.setCustUrl("");
} }
//构建图标地址 //构建图标地址
item.setAppIconUrl(UrlBuilder.of(domainUrl) item.setAppIconUrl(UrlBuilder.ofHttp(params.getServerName()).setPort(params.getServerPort() > 0 ? params.getServerPort() : 11078)
.addPath(item.getAppIconPath()).build()); .addPath(item.getAppIconPath()).build());
}); });
super.findAfter(params, pageInfo, context, list); super.findAfter(params, pageInfo, context, list);
......
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