|
@@ -123,6 +123,22 @@ public class APIServiceImpl implements IAPIservice {
|
|
|
if (list.size() > 0) {
|
|
|
List<APIOpenInterfaceViewModel> apiOpenInterfaceViewModelList = new ArrayList<>();
|
|
|
for (ResourceApiInterfaceWithBLOBs resourceApiInterfaceWithBLOBs : list) {
|
|
|
+ // 替换地址
|
|
|
+ String url = resourceApiInterfaceWithBLOBs.getUrl();
|
|
|
+ if (org.apache.commons.lang.StringUtils.isNotEmpty(url)){
|
|
|
+ String newUrl = null ;
|
|
|
+ // 映射路径
|
|
|
+ url.replace("https://", "");
|
|
|
+ if (url.contains("http://")){
|
|
|
+ newUrl = url.replace("http://", "") ;
|
|
|
+ }
|
|
|
+ if (url.contains("https://")){
|
|
|
+ newUrl = url.replace("https://", "") ;
|
|
|
+ }
|
|
|
+ int i = newUrl.indexOf("/");
|
|
|
+ String substring = SysContants.GatewayPath.GATEWAYVIEWURL+newUrl.substring(i, newUrl.length());
|
|
|
+ resourceApiInterfaceWithBLOBs.setUrl(substring);
|
|
|
+ }
|
|
|
APIOpenInterfaceViewModel apiOpenInterfaceViewModel = new APIOpenInterfaceViewModel();
|
|
|
BeanUtils.copyProperties(resourceApiInterfaceWithBLOBs, apiOpenInterfaceViewModel);
|
|
|
|