Browse Source

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

lantone 3 years atrás
parent
commit
229fb3eb4f
1 changed files with 5 additions and 0 deletions
  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();