From d176b5231b41ea6a875970f4a8e72402718099ff Mon Sep 17 00:00:00 2001 From: 648540858 <648540858@qq.com> Date: 星期五, 23 九月 2022 23:18:06 +0800 Subject: [PATCH] Merge pull request #620 from xu-bin-bin/wvp-28181-2.0 --- src/main/java/com/genersoft/iot/vmp/gb28181/transmit/callback/DeferredResultHolder.java | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/genersoft/iot/vmp/gb28181/transmit/callback/DeferredResultHolder.java b/src/main/java/com/genersoft/iot/vmp/gb28181/transmit/callback/DeferredResultHolder.java index cfb13c3..ba65581 100644 --- a/src/main/java/com/genersoft/iot/vmp/gb28181/transmit/callback/DeferredResultHolder.java +++ b/src/main/java/com/genersoft/iot/vmp/gb28181/transmit/callback/DeferredResultHolder.java @@ -96,7 +96,7 @@ if (result == null) { return; } - result.setResult(new ResponseEntity<>(msg.getData(),HttpStatus.OK)); + result.setResult(msg.getData()); deferredResultMap.remove(msg.getId()); if (deferredResultMap.size() == 0) { map.remove(msg.getKey()); @@ -118,9 +118,8 @@ if (result == null) { return; } - result.setResult(ResponseEntity.ok().body(msg.getData())); + result.setResult(msg.getData()); } map.remove(msg.getKey()); - } } -- Gitblit v1.8.0