记得上下班打卡 | git大法好,push需谨慎

Commit 1a0d7f26 authored by jiangxiulong's avatar jiangxiulong

人体检测-截图回调

parent 54a35968
...@@ -82,13 +82,10 @@ public class KylinCameraController { ...@@ -82,13 +82,10 @@ public class KylinCameraController {
@PostMapping(value = "callBack", produces = "application/xml;charset=UTF-8") @PostMapping(value = "callBack", produces = "application/xml;charset=UTF-8")
@ApiOperation("截图回调") @ApiOperation("截图回调")
public String callBack( public String callBack(
@RequestBody String requestBody, @RequestBody String requestBody
@RequestParam(value = "siteType") Integer siteType,
@RequestParam(value = "fieldId") String fieldId
) { ) {
try { try {
log.info("接收截图回调请求:[siteType=[{}], fieldId=[{}], requestBody=[{}]", log.info("接收截图回调请求:[requestBody={}", requestBody);
siteType, fieldId, requestBody);
// TODO: 2022/1/10 jxltodo 验签 // TODO: 2022/1/10 jxltodo 验签
ObjectMapper configure = JsonUtils.OM().configure(MapperFeature.ACCEPT_CASE_INSENSITIVE_PROPERTIES, true); ObjectMapper configure = JsonUtils.OM().configure(MapperFeature.ACCEPT_CASE_INSENSITIVE_PROPERTIES, true);
...@@ -150,9 +147,9 @@ public class KylinCameraController { ...@@ -150,9 +147,9 @@ public class KylinCameraController {
fieldIds.add(fieldId); fieldIds.add(fieldId);
camera.setSiteType(siteType); camera.setSiteType(siteType);
camera.setFieldId(fieldId); camera.setFieldId(fieldId);
camera.setGbId(gbId);
if (null == kylinCamera) { if (null == kylinCamera) {
camera.setCameraId(IDGenerator.nextSnowId()); camera.setCameraId(IDGenerator.nextSnowId());
camera.setGbId(gbId);
camera.setImgUrl("https://camera.zhengzai.tv/camera/live/".concat(gbId).concat(".jpg")); camera.setImgUrl("https://camera.zhengzai.tv/camera/live/".concat(gbId).concat(".jpg"));
cameraMapper.insert(camera); cameraMapper.insert(camera);
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment