This commit is contained in:
@@ -2,12 +2,15 @@ package org.dromara.sis.controller;
|
||||
|
||||
import com.alibaba.fastjson2.JSONObject;
|
||||
import jakarta.annotation.Resource;
|
||||
import jakarta.servlet.http.HttpServletRequest;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.dromara.sis.sdk.unview.model.UvModel;
|
||||
import org.dromara.sis.sdk.unview.service.VideoAlarmService;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
/**
|
||||
* 宇视告警书记上报
|
||||
*
|
||||
@@ -32,8 +35,9 @@ public class VideoAlarmController {
|
||||
}
|
||||
|
||||
@PostMapping("/huawei/callback")
|
||||
public void huaweiAlarm(@RequestBody Object data) {
|
||||
log.info("华为上报消息,msg={}", data);
|
||||
public void huaweiAlarm(HttpServletRequest request) throws IOException {
|
||||
int read = request.getInputStream().read();
|
||||
log.info("华为上报消息,msg={}", read);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user