Skip to content

feat: 添加驻防识别 - #570

Merged
kuainx merged 1 commit into
mainfrom
fix-garrison
Oct 8, 2026
Merged

kuainx merged 1 commit into
mainfrom
fix-garrison

Conversation

@kuainx

@kuainx kuainx commented Oct 5, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

@codecov

codecov Bot commented Oct 5, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review from [deepseek-v4-flash]:
- Total changes: 9
- Filtered: 8
- Reviewed: 8
- Found issues: 1

TemplateKey.GARRISON: [T.GARRISON],
# 战斗终止态
TemplateKey.END_MAP_PAGE: [T.END_MAP_PAGE],
TemplateKey.END_BATTLE_PAGE: [T.END_BATTLE_PAGE],

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

该代码变更为 TemplateKey 枚举新增了 GARRISON 值,并在 _build_map 中建立了对应映射,逻辑上合理。

但需注意:

  • 请确认 T.GARRISON 已在对应的模板类/模块中正确定义(即 ImageTemplate.GARRISON 存在)。如果缺失,会导致运行期 AttributeError,破坏现有功能。
  • 同时确认 GARRISON 模板资源文件是否已添加,且路径与模板名匹配。

若以上均已满足,则此改动无其他问题。

@kuainx
kuainx merged commit 43ec048 into main Oct 8, 2026
4 checks passed
@kuainx
kuainx deleted the fix-garrison branch October 8, 2026 02:08
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