增加腾讯音视频上传完成回调成功日志及修改mapper

This commit is contained in:
pserimal
2023-06-26 14:21:29 +08:00
parent 14d9066a6e
commit 9abdbfcb2a
6 changed files with 23 additions and 6 deletions

View File

@@ -25,6 +25,7 @@ public class VideoController {
@PostMapping("/callback")
@ApiOperation("音视频回调(腾讯云回调)")
public ResponseResult videoCallback(@RequestBody String requestBody) {
log.info("腾讯音视频上传完成回调request{}", JSONObject.toJSONString(requestBody));
//由于腾讯云恶事做尽,它的回调参数不是驼峰法,首字母是大写,导致 SpringMVC 映射不上,只能手动映射了
TRTCVideoCallBackReq req = JSONObject.parseObject(requestBody, TRTCVideoCallBackReq.class);
//不是音视频上传的回调