| | |
| | | |
| | | for(OilRecord tmpOilRecord:pageList.getRecords()){ |
| | | try{ |
| | | if(StringUtils.isNotEmpty(tmpOilRecord.getImgPath())){ |
| | | |
| | | String randomImagePath = getRandomImagePath(); |
| | | if(randomImagePath != null){ |
| | | tmpOilRecord.setImgPath(randomImagePath); |
| | | } |
| | | } |
| | | if(StringUtils.isNotEmpty(tmpOilRecord.getOutImgPath())){ |
| | | String randomImagePath = getRandomImagePath(); |
| | | if(randomImagePath != null){ |
| | | tmpOilRecord.setOutImgPath(randomImagePath); |
| | | } |
| | | |
| | | |
| | | String randomImagePath2 = getRandomImagePath(); |
| | | if(randomImagePath2 != null){ |
| | | tmpOilRecord.setOutImgPath(randomImagePath2); |
| | | } |
| | | }catch (Exception ex){ |
| | | log.error("生成图片路径失败",ex); |