| | |
| | | } |
| | | |
| | | @Override |
| | | public int awayRiver(int id) { |
| | | SpeakVoiceEntity voiceEntity=voiceMapper.selectById(id); |
| | | public int awayRiver() { |
| | | SpeakVoiceStartDto dto = new SpeakVoiceStartDto(); |
| | | SpeakVoiceFileDto fileDto = new SpeakVoiceFileDto(); |
| | | fileDto.setUrl(voiceEntity.getUrl()); |
| | | fileDto.setMd5(voiceEntity.getMd5()); |
| | | fileDto.setUrl("http://dev.jxpskj.com:9000/cloud-bucket/请远离河道07151604"); |
| | | fileDto.setMd5("d2b448dcba09071834d02f082dc5386f"); |
| | | fileDto.setFormat(FormatEnum.PCM); |
| | | fileDto.setName(voiceEntity.getName()); |
| | | fileDto.setName("河道危险"); |
| | | dto.setPsdk_index(2); |
| | | dto.setFile(fileDto); |
| | | return messageSenderService.publishServicesTopic("4TADKCM0010016", VoiceEnums.SPEAKER_AUDIO_PLAY_START.getMethod(), dto).getResult(); |