Browse Source

指挥调度-语音广播,增加-outVVol 音量,循环次数

develop
王兴琳 2 weeks ago
parent
commit
b20139d8aa
  1. 4
      zc-business/src/main/java/com/zc/business/service/impl/DcEmergencyPlansServiceImpl.java

4
zc-business/src/main/java/com/zc/business/service/impl/DcEmergencyPlansServiceImpl.java

@ -995,7 +995,7 @@ public class DcEmergencyPlansServiceImpl implements DcEmergencyPlansService {
// 路段广播 // 路段广播
JSONObject params = new JSONObject(); JSONObject params = new JSONObject();
params.put("name", "task-event"); params.put("name", "task-event");
params.put("outVVol", UniversalEnum.EIGHT.getValue()); params.put("outVVol",otherConfig.getString("outVol"));
params.put("priority", UniversalEnum.ONE.getValue()); params.put("priority", UniversalEnum.ONE.getValue());
JSONArray contentList = JSON.parseArray(otherConfig.get("contentList").toString()); JSONArray contentList = JSON.parseArray(otherConfig.get("contentList").toString());
JSONObject foundContent = contentList.stream() JSONObject foundContent = contentList.stream()
@ -1025,7 +1025,7 @@ public class DcEmergencyPlansServiceImpl implements DcEmergencyPlansService {
params.put("text", foundContent.getString("content")); params.put("text", foundContent.getString("content"));
} }
params.put("repeatTimes", UniversalEnum.THREE.getValue()); params.put("repeatTimes", otherConfig.getString("repeatTimes"));
params.put("functionType", UniversalEnum.START_PA_TTS.getValue()); params.put("functionType", UniversalEnum.START_PA_TTS.getValue());
JSONArray termList = new JSONArray(); JSONArray termList = new JSONArray();
termList.add(JSON.parseObject(device.getOtherConfig())); termList.add(JSON.parseObject(device.getOtherConfig()));

Loading…
Cancel
Save