Browse Source

修改语音通知bug

suntianwu 3 years ago
parent
commit
93b3a99a04

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

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

+ 1 - 0
src/main/java/com/care/common/service/impl/VoiceSendServiceImpl.java

@@ -56,6 +56,7 @@ public class VoiceSendServiceImpl implements VoiceSendService {
                 mySendStatus.setCallId(sendStatus.getCallId());
                 mySendStatus.setSessionContext(sendStatus.getSessionContext());
                 //存入redis
+                System.out.println("sendVoiceHappen:callId==" + sendStatus.getCallId());
                 redisUtil.hset(RedisKeyConstant.VOICE_CALLBACK_INFO, sendStatus.getCallId(), sendStatus.getSessionContext(), RedisKeyConstant.VOICE_CALLBACK_INFO_TIME);
                 mySendStatus.setSuccess(true);
             }