Quellcode durchsuchen

修改语音通知bug

suntianwu vor 3 Jahren
Ursprung
Commit
167bb24900

+ 2 - 1
src/main/java/com/care/bms/controller/VoiceCallbackController.java

@@ -32,7 +32,8 @@ public class VoiceCallbackController {
 
     @PostMapping("/voice/callback")
     @ApiOperation(tags = {"语音通知回调接口"},value = "语音通知回调接口")
-    public Map<String,Object> callback(@RequestBody VoiceCallbackParams voiceCallbackParams) {
+    public Map<String,Object> callback(@RequestBody Map<String,Object> voiceprompt_callback) {
+        VoiceCallbackParams voiceCallbackParams = (VoiceCallbackParams)voiceprompt_callback.get("voiceprompt_callback");
         String callId = voiceCallbackParams.getCallid();
         System.out.println("callback:callId==" + callId);
         String orderId = (String) redisUtil.hget(RedisKeyConstant.VOICE_CALLBACK_INFO, callId);