Commit 49670c935a251ef71ce94fa739714cf0efdc69e1

Authored by 周伟鹏
1 parent 0d8b69f3

update

src/main/java/com/cnlive/shenhe/api/AvsampleCallBackControllerApi.java
@@ -14,6 +14,7 @@ import org.springframework.stereotype.Controller; @@ -14,6 +14,7 @@ import org.springframework.stereotype.Controller;
14 import org.springframework.web.bind.annotation.PostMapping; 14 import org.springframework.web.bind.annotation.PostMapping;
15 import org.springframework.web.bind.annotation.RequestBody; 15 import org.springframework.web.bind.annotation.RequestBody;
16 import org.springframework.web.bind.annotation.RequestMapping; 16 import org.springframework.web.bind.annotation.RequestMapping;
  17 +import org.springframework.web.bind.annotation.ResponseBody;
17 18
18 import java.util.List; 19 import java.util.List;
19 20
@@ -36,6 +37,7 @@ public class AvsampleCallBackControllerApi { @@ -36,6 +37,7 @@ public class AvsampleCallBackControllerApi {
36 * @param json 37 * @param json
37 */ 38 */
38 @PostMapping("/callback") 39 @PostMapping("/callback")
  40 + @ResponseBody
39 public ResponseBean callback(@RequestBody JSONObject json) { 41 public ResponseBean callback(@RequestBody JSONObject json) {
40 logger.info("抽帧回调请求。。。。json=="+json.toJSONString()); 42 logger.info("抽帧回调请求。。。。json=="+json.toJSONString());
41 String taskId = json.getString("taskId"); 43 String taskId = json.getString("taskId");