|
@@ -1,9 +1,11 @@
|
|
package com.ym.controller;
|
|
package com.ym.controller;
|
|
|
|
|
|
|
|
+import com.alibaba.fastjson.JSON;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.ym.mec.common.entity.ImRoomMessage;
|
|
import com.ym.mec.common.entity.ImRoomMessage;
|
|
import com.ym.pojo.IMApiResultInfo;
|
|
import com.ym.pojo.IMApiResultInfo;
|
|
import com.ym.pojo.RecordNotify;
|
|
import com.ym.pojo.RecordNotify;
|
|
|
|
+import com.ym.pojo.TencentImCallbackResult;
|
|
import com.ym.service.LiveRoomService;
|
|
import com.ym.service.LiveRoomService;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
@@ -13,6 +15,8 @@ import org.springframework.web.bind.annotation.RequestBody;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
|
+import javax.servlet.http.HttpServletRequest;
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* @author hgw
|
|
* @author hgw
|
|
* Created by 2022-02-21
|
|
* Created by 2022-02-21
|
|
@@ -96,4 +100,14 @@ public class LiveRoomController {
|
|
log.info("syncChatRoomStatus body:{}", body);
|
|
log.info("syncChatRoomStatus body:{}", body);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
|
|
+ @ApiOperation("腾讯im 回调接口")
|
|
|
|
+ @PostMapping(value = "/tencentImCallback")
|
|
|
|
+ public TencentImCallbackResult tencentImCallback(@RequestBody String body, HttpServletRequest request) {
|
|
|
|
+ log.info("tencentImCallback body:{}", body);
|
|
|
|
+
|
|
|
|
+ log.info("tencentImCallback request param:{}", JSON.toJSONString(request.getParameterMap()));
|
|
|
|
+
|
|
|
|
+ return new TencentImCallbackResult();
|
|
|
|
+ }
|
|
}
|
|
}
|