浏览代码

解决5.0推送既往史中因为中文引号影响推送效果

lantone 3 年之前
父节点
当前提交
229fb3eb4f
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      src/main/java/com/diagbot/process/PushProcess.java

+ 5 - 0
src/main/java/com/diagbot/process/PushProcess.java

@@ -118,6 +118,11 @@ public class PushProcess {
                 || (StringUtils.isNotBlank(icssVo.getSymptom()) && icssVo.getSymptom().trim().equals("呼吸困难"))) {
             icssVo.setChief("呼吸困难。");
         }
+        String pasts = icssVo.getPasts();
+        if(StringUtils.isNotBlank(pasts)){
+            pasts = pasts.replaceAll("\\“","\"");
+            icssVo.setPasts(pasts);
+        }
         Response<ResponseData> annotation = icssPushServiceClient.getAnnotation(icssVo);
         if (annotation != null) {
             ResponseData data = annotation.getData();