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