| | |
| | | import com.java110.intf.common.IAdvertInnerServiceSMO; |
| | | import com.java110.intf.common.IAdvertItemInnerServiceSMO; |
| | | import com.java110.utils.cache.MappingCache; |
| | | import com.java110.utils.constant.MappingConstant; |
| | | import com.java110.utils.exception.CmdException; |
| | | import com.java110.utils.util.BeanConvertUtil; |
| | | import com.java110.utils.util.StringUtil; |
| | |
| | | */ |
| | | private void getAdvertItem(List<AdvertDto> advertDtos, JSONArray advertPhotoAndVideos) { |
| | | JSONObject photoAndVideo = null; |
| | | String imgUrl = MappingCache.getValue("IMG_PATH"); |
| | | String imgUrl = MappingCache.getValue(MappingConstant.FILE_DOMAIN,"IMG_PATH"); |
| | | for (AdvertDto advertDto : advertDtos) { |
| | | |
| | | AdvertItemDto advertItemDto = new AdvertItemDto(); |
| | |
| | | }else{ |
| | | photoAndVideo.put("url", imgUrl + tmpAdvertItemDto.getUrl()); |
| | | } |
| | | photoAndVideo.put("url", imgUrl + tmpAdvertItemDto.getUrl()); |
| | | photoAndVideo.put("seq", tmpAdvertItemDto.getSeq()); |
| | | photoAndVideo.put("advertType", advertDto.getAdvertType()); |
| | | photoAndVideo.put("pageUrl", advertDto.getPageUrl()); |