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; // 默认值