|
|
@@ -765,7 +765,9 @@ public class LabRiskPlanServiceImpl extends ServiceImpl<LabRiskPlanMapper, LabRi
|
|
|
log.info("录制视频结束返回结果打印={}", JSON.toJSONString(r));
|
|
|
if (r.getCode() == HttpStatus.SUCCESS) {
|
|
|
com.alibaba.fastjson.JSONObject jsonObject = com.alibaba.fastjson.JSONObject.parseObject(JSON.toJSONString(r.getData()));
|
|
|
- recordVideo = jsonObject.getString("data");
|
|
|
+ if(jsonObject.getInteger("code") == HttpStatus.SUCCESS){
|
|
|
+ recordVideo = jsonObject.getString("data");
|
|
|
+ }
|
|
|
} else {
|
|
|
log.info("结束录制视频失败!");
|
|
|
}
|
|
|
@@ -776,7 +778,12 @@ public class LabRiskPlanServiceImpl extends ServiceImpl<LabRiskPlanMapper, LabRi
|
|
|
log.error("远程调用结束录制视频接口失败!{}", e);
|
|
|
}
|
|
|
//更新风险概要 recordVideo - 视频记录存放地址
|
|
|
- String handlePerson = tokenService.getLoginUser().getNickName();
|
|
|
+ String handlePerson = "";
|
|
|
+ if(!Objects.isNull(tokenService.getLoginUser())){
|
|
|
+ handlePerson = tokenService.getLoginUser().getNickName();
|
|
|
+ }else {
|
|
|
+ handlePerson = "SYSTEM";
|
|
|
+ }
|
|
|
labRiskPlanAbnormalDescService.updateLabRiskPlanAbnormalDesc(groupId, handlePerson, recordVideo);
|
|
|
}
|
|
|
|
|
|
@@ -978,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);
|
|
|
@@ -1004,7 +1020,7 @@ public class LabRiskPlanServiceImpl extends ServiceImpl<LabRiskPlanMapper, LabRi
|
|
|
log.info("合成音乐列表为空,此预案不触发音乐!riskPlanId={}", riskPlanId);
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
- log.error("开启喇叭失败!!!!!:" + e);
|
|
|
+ log.info("开启喇叭失败!={}",e);
|
|
|
}
|
|
|
}
|
|
|
|