From d1a1100064c2a55f97cfc3c8e6f817a37739979e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8D=92?= Date: Fri, 7 Nov 2025 15:59:52 +0800 Subject: [PATCH] 1 --- .../service/impl/TencentDocDelayedPushServiceImpl.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ruoyi-system/src/main/java/com/ruoyi/jarvis/service/impl/TencentDocDelayedPushServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/jarvis/service/impl/TencentDocDelayedPushServiceImpl.java index a33a4a9..886e2b5 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/jarvis/service/impl/TencentDocDelayedPushServiceImpl.java +++ b/ruoyi-system/src/main/java/com/ruoyi/jarvis/service/impl/TencentDocDelayedPushServiceImpl.java @@ -262,9 +262,11 @@ public class TencentDocDelayedPushServiceImpl implements ITencentDocDelayedPushS log.info("开始执行批量同步..."); // 从 Redis 读取配置信息(用户通过前端配置页面设置) - String fileId = redisCache.getCacheObject("tendoc:config:fileId"); - String sheetId = redisCache.getCacheObject("tendoc:config:sheetId"); - Integer startRow = redisCache.getCacheObject("tendoc:config:startRow"); + // 注意:使用与 TencentDocConfigController 相同的 key 前缀 + final String CONFIG_KEY_PREFIX = "tencent:doc:auto:config:"; + String fileId = redisCache.getCacheObject(CONFIG_KEY_PREFIX + "fileId"); + String sheetId = redisCache.getCacheObject(CONFIG_KEY_PREFIX + "sheetId"); + Integer startRow = redisCache.getCacheObject(CONFIG_KEY_PREFIX + "startRow"); if (startRow == null) { startRow = 3; // 默认值