Skip to content

fix: 修复彩票开奖结果JSON反序列化失败和502重试机制#105

Merged
df123 merged 1 commit into
masterfrom
dev
May 5, 2026
Merged

fix: 修复彩票开奖结果JSON反序列化失败和502重试机制#105
df123 merged 1 commit into
masterfrom
dev

Conversation

@df123
Copy link
Copy Markdown
Owner

@df123 df123 commented May 5, 2026

  • 修复 LotteryInputDto 使用缺少 JsonPropertyName 的旧命名空间 ResultItemDto, 导致 System.Text.Json 反序列化后所有字段为 null 的问题
  • 统一使用 DFApp.Web.DTOs.Lottery.ResultItemDto(带 JsonPropertyName 特性)
  • LotteryResultJob.GetLotteryResult 添加 502/504 网关错误重试机制 (最多3次,递增延迟5s/10s/15s)
  • 改进错误处理:先读取响应体再检查状态码,失败时记录详细错误信息
  • 统一 LotteryDataFetchService 的 mapper 方法调用

- 修复 LotteryInputDto 使用缺少 JsonPropertyName 的旧命名空间 ResultItemDto,
  导致 System.Text.Json 反序列化后所有字段为 null 的问题
- 统一使用 DFApp.Web.DTOs.Lottery.ResultItemDto(带 JsonPropertyName 特性)
- LotteryResultJob.GetLotteryResult 添加 502/504 网关错误重试机制
  (最多3次,递增延迟5s/10s/15s)
- 改进错误处理:先读取响应体再检查状态码,失败时记录详细错误信息
- 统一 LotteryDataFetchService 的 mapper 方法调用
@df123 df123 merged commit 395f1e7 into master May 5, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant