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

Commit 1a0d7f26 authored by jiangxiulong's avatar jiangxiulong

人体检测-截图回调

parent 54a35968
......@@ -82,13 +82,10 @@ public class KylinCameraController {
@PostMapping(value = "callBack", produces = "application/xml;charset=UTF-8")
@ApiOperation("截图回调")
public String callBack(
@RequestBody String requestBody,
@RequestParam(value = "siteType") Integer siteType,
@RequestParam(value = "fieldId") String fieldId
@RequestBody String requestBody
) {
try {
log.info("接收截图回调请求:[siteType=[{}], fieldId=[{}], requestBody=[{}]",
siteType, fieldId, requestBody);
log.info("接收截图回调请求:[requestBody={}", requestBody);
// TODO: 2022/1/10 jxltodo 验签
ObjectMapper configure = JsonUtils.OM().configure(MapperFeature.ACCEPT_CASE_INSENSITIVE_PROPERTIES, true);
......@@ -150,9 +147,9 @@ public class KylinCameraController {
fieldIds.add(fieldId);
camera.setSiteType(siteType);
camera.setFieldId(fieldId);
camera.setGbId(gbId);
if (null == kylinCamera) {
camera.setCameraId(IDGenerator.nextSnowId());
camera.setGbId(gbId);
camera.setImgUrl("https://camera.zhengzai.tv/camera/live/".concat(gbId).concat(".jpg"));
cameraMapper.insert(camera);
} 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