| | |
| | | |
| | | private void dealBgImgAll(OssModel ossModel, Integer id, BaseData data) { |
| | | int i =0; |
| | | i += addImg(i,ossModel,id,data.getBgImg()); |
| | | i += addImg(i,ossModel,id,data.getBgImg2()); |
| | | addImg(i,ossModel,id,data.getBgImg3()); |
| | | //多图,英文逗号隔开 |
| | | if(StringUtils.isNotBlank(data.getBgImg())){ |
| | | String tImg = data.getBgImg().replace(",", ","); |
| | | String[] imgs =tImg.split(","); |
| | | for (int j = 0; j < imgs.length; j++) { |
| | | if(StringUtils.isNotBlank(imgs[j])){ |
| | | i += addImg(i,ossModel,id,imgs[j]); |
| | | } |
| | | } |
| | | } |
| | | // i += addImg(i,ossModel,id,data.getBgImg()); |
| | | // i += addImg(i,ossModel,id,data.getBgImg2()); |
| | | // addImg(i,ossModel,id,data.getBgImg3()); |
| | | } |
| | | |
| | | private int addImg(int i,OssModel ossModel, Integer id,String bgImg) { |