协议管理处理正文图片在前端不显示问题
This commit is contained in:
parent
97ea70f589
commit
0ef0280438
@ -219,12 +219,14 @@ public class AgreementPortalServiceImpl extends DefaultBaseService implements IA
|
|||||||
params.put("agreementType", agreementType);
|
params.put("agreementType", agreementType);
|
||||||
params.put("sendStatus", "published");
|
params.put("sendStatus", "published");
|
||||||
AgreementPortalDTO agreementDTO = agreementDao.getByType(params);
|
AgreementPortalDTO agreementDTO = agreementDao.getByType(params);
|
||||||
if(null != forPortal) {
|
if(null != forPortal && null != agreementDTO) {
|
||||||
// System.out.println("-----" + newsDTO.getContent());
|
// System.out.println("-----" + newsDTO.getContent());
|
||||||
String replacedText = agreementDTO.getContent().replaceAll("<img src=\"route/file(.*?)\"",
|
if(null != agreementDTO.getContent()) {
|
||||||
"<img src=\"https://www.aimzhu.com/operator/route/file$1\"");
|
String replacedText = agreementDTO.getContent().replaceAll("<img src=\"route/file(.*?)\"",
|
||||||
agreementDTO.setContent(replacedText);
|
"<img src=\"https://www.aimzhu.com/operator/route/file$1\"");
|
||||||
// System.out.println("*****" + newsDTO.getContent());
|
agreementDTO.setContent(replacedText);
|
||||||
|
// System.out.println("*****" + newsDTO.getContent());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return agreementDTO;
|
return agreementDTO;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user