优化业主小程序广告栏图片不显示,兼容FTP和OSS(配置时需加上 /)
| | |
| | | private void getAdvertItem(List<AdvertDto> advertDtos, JSONArray advertPhotoAndVideos) { |
| | | JSONObject photoAndVideo = null; |
| | | String imgUrl = MappingCache.getValue("IMG_PATH"); |
| | | imgUrl += (!StringUtil.isEmpty(imgUrl) && imgUrl.endsWith("/") ? "" : "/"); |
| | | for (AdvertDto advertDto : advertDtos) { |
| | | |
| | | AdvertItemDto advertItemDto = new AdvertItemDto(); |
| | |
| | | List<PhotoVo> afterPhotos = null; //维修后图片 |
| | | PhotoVo photoVo = null; |
| | | String imgUrl = MappingCache.getValue("IMG_PATH"); |
| | | imgUrl += (!StringUtil.isEmpty(imgUrl) && imgUrl.endsWith("/") ? "" : "/"); |
| | | for (RepairDto repairDto : ownerRepairs) { |
| | | FileRelDto fileRelDto = new FileRelDto(); |
| | | fileRelDto.setObjId(repairDto.getRepairId()); |
| | |
| | | } |
| | | |
| | | String imgUrl = MappingCache.getValue("IMG_PATH"); |
| | | imgUrl += (!StringUtil.isEmpty(imgUrl) && imgUrl.endsWith("/") ? "" : "/"); |
| | | FileRelDto fileRelDto = new FileRelDto(); |
| | | fileRelDto.setObjId(paramIn.getString("repairId")); |
| | | List<FileRelDto> fileRelDtos = fileRelInnerServiceSMOImpl.queryFileRels(fileRelDto); |
| | |
| | | List<FileRelDto> fileRelDtos = fileRelInnerServiceSMOImpl.queryFileRels(fileRelDto); |
| | | String url = ""; |
| | | String imgUrl = MappingCache.getValue("IMG_PATH"); |
| | | imgUrl += (!StringUtil.isEmpty(imgUrl) && imgUrl.endsWith("/") ? "" : "/"); |
| | | if (fileRelDtos != null && fileRelDtos.size() > 0) { |
| | | url = imgUrl + fileRelDtos.get(0).getFileRealName(); |
| | | } |
| | |
| | | List<FileRelDto> fileRelDtos = fileRelInnerServiceSMOImpl.queryFileRels(fileRelDto); |
| | | String url = ""; |
| | | String imgUrl = MappingCache.getValue("IMG_PATH"); |
| | | imgUrl += (!StringUtil.isEmpty(imgUrl) && imgUrl.endsWith("/") ? "" : "/"); |
| | | if (fileRelDtos != null && fileRelDtos.size() > 0) { |
| | | url = imgUrl + fileRelDtos.get(0).getFileRealName(); |
| | | } |
| | |
| | | return; |
| | | } |
| | | String imgUrl = MappingCache.getValue("IMG_PATH"); |
| | | imgUrl += (!StringUtil.isEmpty(imgUrl) && imgUrl.endsWith("/") ? "" : "/"); |
| | | for(WorkflowDataFileDto tmpWorkflowDataFileDto: workflowDataFileDtos){ |
| | | tmpWorkflowDataFileDto.setRealFileName(imgUrl + tmpWorkflowDataFileDto.getRealFileName()); |
| | | } |
| | |
| | | |
| | | private void freshAdsUrl(List<StoreAdsDto> storeAdsDtos) { |
| | | String imgUrl = MappingCache.getValue("IMG_PATH"); |
| | | imgUrl += (!StringUtil.isEmpty(imgUrl) && imgUrl.endsWith("/") ? "" : "/"); |
| | | for (StoreAdsDto tmpStoreAdsDto : storeAdsDtos) { |
| | | tmpStoreAdsDto.setUrl(imgUrl + tmpStoreAdsDto.getUrl()); |
| | | } |
| | |
| | | } |
| | | OwnerAppUserDto ownerAppUserDto = new OwnerAppUserDto(); |
| | | ownerAppUserDto.setMemberId(paramInJson.getString("ownerId")); |
| | | |
| | | //查询app用户表 |
| | | List<OwnerAppUserDto> ownerAppUserDtos = ownerAppUserInnerServiceSMOImpl.queryOwnerAppUsers(ownerAppUserDto); |
| | | if (ownerAppUserDtos != null && ownerAppUserDtos.size() > 0) { |