From afa8fc57084c423218c6816b710dfb2f0b87ea89 Mon Sep 17 00:00:00 2001
From: 潘志宝 <979469083@qq.com>
Date: 星期四, 14 十一月 2024 15:55:48 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/video/dahua/DHCapturePictureClient.java |   10 ++++------
 1 files changed, 4 insertions(+), 6 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 0c79602..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;
@@ -25,8 +24,6 @@
  */
 public class DHCapturePictureClient {
     private Logger logger = LoggerFactory.getLogger(getClass());
-
-    private String url = "http://localhost:48080/admin-api/data/video/camera/DHCaptureCallback";
 
     // 登陆句柄
     public static NetSDKLib netsdk = NetSDKLib.NETSDK_INSTANCE;
@@ -296,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(url, JSON.toJSONString(params), "utf-8", "");
+                params.put("brand", "DH");
+                VideoConfiguration.staticCameraService.dealCapture(params);
             }
             return true;
         } catch (Exception ex) {

--
Gitblit v1.9.3