Fix: 修复微信公众号 msg.id 类型不匹配导致重试失败 (#1679) #4292
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🐛 问题描述
症状
根本原因
类型不匹配:
代码设计意图是做重复检测(避免微信重试时重复处理),但检查时忘记将
msg.id转换为字符串。✅ 修改内容
文件:
astrbot/core/platform/sources/weixin_official_account/weixin_offacc_adapter.py一行修改,将整数类型的
msg.id转换为字符串后再检查。🎯 场景对比:AI 图片生成
❌ 修改前(有 Bug)
✅ 修改后(已修复)
📊 影响范围
🧪 测试验证
Fixes #1679
Summary by Sourcery
Bug Fixes:
Original summary in English
Summary by Sourcery
Bug Fixes: