From e491cdb48129752324c4e3764f99bd9203c56dec Mon Sep 17 00:00:00 2001
From: lgq <1015864684@qq.com>
Date: 星期二, 31 三月 2026 09:48:44 +0800
Subject: [PATCH] 1.新增VF205门禁机代码
---
vf205_access/dxmodules/capturerWorker.js | 27 +++++++++++++++++++++++++++
1 files changed, 27 insertions(+), 0 deletions(-)
diff --git a/vf205_access/dxmodules/capturerWorker.js b/vf205_access/dxmodules/capturerWorker.js
new file mode 100644
index 0000000..061bf6c
--- /dev/null
+++ b/vf205_access/dxmodules/capturerWorker.js
@@ -0,0 +1,27 @@
+//build:20240524
+//鐢ㄤ簬绠�鍖朿apturer缁勪欢鐨勪娇鐢紝鎶奵apturer灏佽鍦ㄨ繖涓獁orker閲岋紝浣跨敤鑰呭彧闇�瑕佽闃卐ventbus鐨勪簨浠跺氨鍙互鐩戝惉capturer
+import log from './dxLogger.js'
+import capturer from './dxCapturer.js'
+import dxMap from './dxMap.js'
+import std from './dxStd.js'
+const map = dxMap.get('default')
+const id = "{{id}}"
+const options = map.get("__capturer__run_init" + id)
+
+function run() {
+ capturer.worker.beforeLoop(options)
+ log.info('capturer start......,id =', options.id)
+ std.setInterval (function() {
+ try {
+ capturer.worker.loop(options)
+ } catch (error) {
+ log.error(error)
+ }
+ },10)
+}
+
+try {
+ run()
+} catch (error) {
+ log.error(error)
+}
\ No newline at end of file
--
Gitblit v1.9.3