소스 검색

下车提醒修改

zhengqiang 4 년 전
부모
커밋
6ae02aa17a
1개의 변경된 파일4개의 추가작업 그리고 5개의 파일을 삭제
  1. 4 5
      web/src/main/java/com/jpsoft/bus/modules/mq/listener/StationRemindListener.java

+ 4 - 5
web/src/main/java/com/jpsoft/bus/modules/mq/listener/StationRemindListener.java

@@ -57,7 +57,7 @@ public class StationRemindListener {
 
             for (StationRemind stationRemind : stationRemindList) {
                 try {
-                    String remindStr = "上车刷脸听到'识别成功'通行,入座扫码手机购票。";
+                    String remindStr = "上车刷脸听到“识别成功”通行,入座扫码手机购票。";
 
                     if (stationRemind.getRemindType() != null && stationRemind.getRemindType() == 2) {
                         //下车提醒要判断是不是同一个班次
@@ -65,7 +65,7 @@ public class StationRemindListener {
                             continue;
                         }
                         else{
-                            remindStr = "下车时刷脸听到'识别成功'即可下车!";
+                            remindStr = "下车时刷脸听到“识别成功”即可下车!";
                         }
                     }
 
@@ -89,9 +89,8 @@ public class StationRemindListener {
                     sendData.put("thing6", thing6);
 
                     JSONObject thing3 = new JSONObject();
-                    thing3.put("value", String.format("距离目的站点(%s)还有%s站,%s", remindStation.getName(),
-                            stationRemind.getStopInAdvance(),
-                            remindStr));
+                    //距离目的站点(%s)还有%s站 remindStation.getName(),stationRemind.getStopInAdvance()
+                    thing3.put("value", String.format("%s",remindStr));
 
                     sendData.put("thing3", thing3);