Parcourir la source

换行符替换

chenw il y a 6 ans
Parent
commit
91fcf20632

+ 1 - 1
applications/school/school-server/src/main/java/com/usoftchina/smartschool/school/business/service/impl/NoticeServiceImpl.java

@@ -172,7 +172,7 @@ public class NoticeServiceImpl implements NoticeService{
                 msg.setKeyword1(school.getSchool_name());
                 msg.setKeyword2("校办公室");
                 msg.setKeyword3(DateUtils.format());
-                msg.setKeyword4(data.getNotify_details());
+                msg.setKeyword4(data.getNotify_details().replaceAll("\\n", "\\\\n"));
                 msg.setRemark("谢谢使用!");
                 msg.setTemplateId(template.getSt_templateid());
                 msg.setTouser(noticer.getOpenid());