- 使用 IServiceScopeFactory 解决 scoped 服务依赖问题 - IWechatService 是 scoped 服务,不能直接注入到 singleton 后台服务 - 每次处理订单时创建新的 scope 来解析 IWechatService - 将检查间隔从 60 秒改为 30 秒 - 优化 RedisService.GetKeysAsync 使用实时连接状态检查 |
||
|---|---|---|
| .. | ||
| HoneyBox | ||
| php | ||
| scripts | ||
- 使用 IServiceScopeFactory 解决 scoped 服务依赖问题 - IWechatService 是 scoped 服务,不能直接注入到 singleton 后台服务 - 每次处理订单时创建新的 scope 来解析 IWechatService - 将检查间隔从 60 秒改为 30 秒 - 优化 RedisService.GetKeysAsync 使用实时连接状态检查 |
||
|---|---|---|
| .. | ||
| HoneyBox | ||
| php | ||
| scripts | ||