From f167fd2b0484bea86cc7fddf22169c0a9ce117df Mon Sep 17 00:00:00 2001
From: zjk <852185829@qq.com>
Date: 星期五, 24 七月 2026 14:04:47 +0800
Subject: [PATCH] feat(employee, admin): 新增强制员工同步,重构同步缓存与业务逻辑
---
utils/syncEngine.js | 36 ++++++++++++++++++------------------
1 files changed, 18 insertions(+), 18 deletions(-)
diff --git a/utils/syncEngine.js b/utils/syncEngine.js
index c438b9f..2f163b9 100644
--- a/utils/syncEngine.js
+++ b/utils/syncEngine.js
@@ -134,15 +134,15 @@
});
submitRes = await idCardSingOut(item.payload);
- await new Promise((resolve) => {
- uni.showModal({
- title: '调试: 签离接口返回',
- content: `记录ID: ${item.recordId}\n结果: ${JSON.stringify(submitRes).substring(0, 500)}`,
- showCancel: false,
- success: resolve,
- fail: resolve
- });
- });
+ // await new Promise((resolve) => {
+ // uni.showModal({
+ // title: '调试: 签离接口返回',
+ // content: `记录ID: ${item.recordId}\n结果: ${JSON.stringify(submitRes).substring(0, 500)}`,
+ // showCancel: false,
+ // success: resolve,
+ // fail: resolve
+ // });
+ // });
} else {
// type 为 appointment, online, 或它们加上 _signedout 后缀时,都作为进场记录同步
console.log('[Sync] 开始调用登记接口:', {
@@ -152,15 +152,15 @@
});
submitRes = await addVisitorRecord(item.payload);
- await new Promise((resolve) => {
- uni.showModal({
- title: '调试: 登记接口返回',
- content: `类型: ${item.type}\n记录ID: ${item.recordId}\n结果: ${JSON.stringify(submitRes).substring(0, 500)}`,
- showCancel: false,
- success: resolve,
- fail: resolve
- });
- });
+ // await new Promise((resolve) => {
+ // uni.showModal({
+ // title: '调试: 登记接口返回',
+ // content: `类型: ${item.type}\n记录ID: ${item.recordId}\n结果: ${JSON.stringify(submitRes).substring(0, 500)}`,
+ // showCancel: false,
+ // success: resolve,
+ // fail: resolve
+ // });
+ // });
}
console.log('[Sync] 单条业务接口返回:', {
--
Gitblit v1.7.1