From c4e968254a4f1c5d538a9fd91284b4843ea08198 Mon Sep 17 00:00:00 2001
From: kazelee <1847801760@qq.com>
Date: 星期五, 23 五月 2025 10:44:58 +0800
Subject: [PATCH] 内部联调,修复问题,添加取消任务功能

---
 device/SnapManager.cs |   25 ++++++++++++++-----------
 1 files changed, 14 insertions(+), 11 deletions(-)

diff --git a/device/SnapManager.cs b/device/SnapManager.cs
index 3a647a3..fd494b6 100644
--- a/device/SnapManager.cs
+++ b/device/SnapManager.cs
@@ -11,21 +11,24 @@
             if (_snapDevice == null) {
                 _snapDevice = new SnapDevice();
             }
-            _snapDevice.LoadInfo(snap);
+            //_snapDevice.LoadInfo(snap); // TODO SNAP
         }
 
         public static string GetCapturePicturePath() {
-            DateTime now = DateTime.Now;
-            string path = Settings.CaptureUrl;
-            string fileName = string.Format("{0}{1}{2}{3}{4}{5}", now.Year, now.Month, now.Day, now.Hour, now.Minute, now.Second) + ".jpg";
-            string filePath = path + "\\" + fileName;
+            //DateTime now = DateTime.Now;
+            //string path = Settings.CaptureUrl;
+            //string fileName = string.Format("{0}{1}{2}{3}{4}{5}", now.Year, now.Month, now.Day, now.Hour, now.Minute, now.Second) + ".jpg";
+            //string filePath = path + "\\" + fileName;
 
-            if (_snapDevice.SnapPictureToFileOK(ref filePath)) {
-                return filePath;
-            }
-            else {
-                return string.Empty;
-            }
+            //if (_snapDevice.SnapPictureToFileOK(ref filePath)) {
+            //    return filePath;
+            //}
+            //else {
+            //    return string.Empty;
+            //}
+
+            // TODO SNAP
+            return string.Empty;
         }
     }
 }

--
Gitblit v1.9.1