From 08b6a55a3a111aaee9842999b85afa60b6d61dc3 Mon Sep 17 00:00:00 2001
From: houzhongjian <houzhongyi@126.com>
Date: 星期四, 14 十一月 2024 15:29:38 +0800
Subject: [PATCH] 大华及海康摄像头截图功能开发

---
 iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/video/dahua/DHCapturePictureClient.java |   13 ++++---------
 1 files changed, 4 insertions(+), 9 deletions(-)

diff --git a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/video/dahua/DHCapturePictureClient.java b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/video/dahua/DHCapturePictureClient.java
index b84bdf7..83e9868 100644
--- a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/video/dahua/DHCapturePictureClient.java
+++ b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/video/dahua/DHCapturePictureClient.java
@@ -1,7 +1,6 @@
 package com.iailab.module.data.video.dahua;
 
-import com.alibaba.fastjson.JSON;
-import com.iailab.module.data.common.utils.HttpRequest;
+import com.iailab.module.data.video.config.VideoConfiguration;
 import com.iailab.module.data.video.dahua.frame.DHCapturePictureFrame;
 import com.iailab.netsdk.common.Res;
 import com.iailab.netsdk.demo.module.LoginModule;
@@ -13,7 +12,6 @@
 import com.sun.jna.ptr.IntByReference;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
-import org.springframework.beans.factory.annotation.Value;
 
 import java.awt.*;
 import java.io.File;
@@ -26,10 +24,6 @@
  */
 public class DHCapturePictureClient {
     private Logger logger = LoggerFactory.getLogger(getClass());
-
-//    private String url = "http://localhost:48080/admin-api/data/video/camera/DHCaptureCallback";
-//    @Value("${video.dahua.callback.url}")
-//    public String url;
 
     // 登陆句柄
     public static NetSDKLib netsdk = NetSDKLib.NETSDK_INSTANCE;
@@ -299,11 +293,12 @@
                 return false;
             } else {
                 System.out.println("CLIENT_CapturePicture success");
-                // 回调处理图片
+                // 处理图片
                 Map<String, String> params = new HashMap<>();
                 params.put("strFileName", strFileName);
                 params.put("cmdSerial", cmdSerial);
-                HttpRequest.doPost(DHConfiguration.staticUrl, JSON.toJSONString(params), "utf-8", "");
+                params.put("brand", "DH");
+                VideoConfiguration.staticCameraService.dealCapture(params);
             }
             return true;
         } catch (Exception ex) {

--
Gitblit v1.9.3