|
|
@@ -985,17 +985,26 @@ public class LabRiskPlanServiceImpl extends ServiceImpl<LabRiskPlanMapper, LabRi
|
|
|
R deviceList = remoteSpeakService.getDeviceList(1, 100, floorId, subjectId);
|
|
|
log.info("远程调用喇叭列表返回内容: deviceList={}", JSON.toJSONString(deviceList));
|
|
|
if (deviceList.getCode() == 200) {
|
|
|
+ log.info("调用喇叭1");
|
|
|
List<Map<String, Object>> mapList = (List<Map<String, Object>>) deviceList.getData();
|
|
|
+ log.info("调用喇叭2={}",JSON.toJSONString(mapList));
|
|
|
for (Map<String, Object> map : mapList) {
|
|
|
if (StringUtils.isNotNull(map.get("deviceSn")) && StringUtils.isNotNull(map.get("port"))) {
|
|
|
+ log.info("调用喇叭3");
|
|
|
List<PlayVo> playVoList = new ArrayList<>();
|
|
|
PlayVo playVo = new PlayVo();
|
|
|
+ log.info("调用喇叭4");
|
|
|
playVo.setSn(map.get("deviceSn") + "");
|
|
|
+ log.info("调用喇叭5");
|
|
|
playVo.setDeviceIp(map.get("deviceIp") + "");
|
|
|
+ log.info("调用喇叭6");
|
|
|
playVo.setPort(Integer.parseInt(map.get("port") + ""));
|
|
|
+ log.info("调用喇叭7");
|
|
|
ParamVo paramVo = new ParamVo();
|
|
|
paramVo.setVol(Integer.parseInt(map.get("deviceVol").toString()));
|
|
|
+ log.info("调用喇叭8");
|
|
|
playVo.setParams(paramVo);
|
|
|
+ log.info("调用喇叭9");
|
|
|
playVoList.add(playVo);
|
|
|
log.info("远程调用喇叭播放音乐!url={},playVoList={}", audioSyntheses.get(0).getNewMusicUrl(), JSON.toJSONString(playVoList));
|
|
|
R r = remoteSpeakService.textParseUrlAppIps(audioSyntheses.get(0).getNewMusicUrl(), playVoList);
|
|
|
@@ -1011,7 +1020,7 @@ public class LabRiskPlanServiceImpl extends ServiceImpl<LabRiskPlanMapper, LabRi
|
|
|
log.info("合成音乐列表为空,此预案不触发音乐!riskPlanId={}", riskPlanId);
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
- log.error("开启喇叭失败!!!!!:" + e);
|
|
|
+ log.info("开启喇叭失败!={}",e);
|
|
|
}
|
|
|
}
|
|
|
|