Commit Graph

3 Commits

Author SHA1 Message Date
zpc
8991118f8d fix: 修复发货重试后台服务不执行的问题
- 使用 IServiceScopeFactory 解决 scoped 服务依赖问题
- IWechatService 是 scoped 服务,不能直接注入到 singleton 后台服务
- 每次处理订单时创建新的 scope 来解析 IWechatService
- 将检查间隔从 60 秒改为 30 秒
- 优化 RedisService.GetKeysAsync 使用实时连接状态检查
2026-02-10 17:22:38 +08:00
zpc
d4c15c8feb feat: 添加微信发货重试后台服务
- 新增 ShippingRetryBackgroundService 后台服务
- 每60秒检查 Redis 中失败的发货订单
- 支持最多10次重试,重试间隔30秒
- IRedisService 添加 GetKeysAsync 方法支持模式匹配
- 解决支付完成后立即发货导致'支付单不存在'的问题
2026-02-10 16:45:06 +08:00
gpu
841533635c 调整文件夹层级 2026-01-04 01:47:02 +08:00