fix(api): navigate to map page before acquisition OCR#363
Merged
yltx merged 11 commits intoOpenWSGR:mainfrom Mar 11, 2026
Merged
fix(api): navigate to map page before acquisition OCR#363yltx merged 11 commits intoOpenWSGR:mainfrom
yltx merged 11 commits intoOpenWSGR:mainfrom
Conversation
The /api/game/acquisition endpoint assumed the game screen was already on the map page. Add goto_page() call to navigate there first, so the API works from any game state. Also bump version to 2.1.5.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
修改内容/api/game/acquisition 端点之前假设游戏画面已经在地图页面上。添加
goto_page()调用先导航到地图页面,使 API 在任意游戏状态下都可用。同时将版本号更新为 2.1.5。## 变更-autowsgr/server/routes/game.py: 在 OCR 识别前调用goto_page(ctx, '地图页面')导航到出征面板-autowsgr/__init__.py: 版本号 2.1.4.post1 → 2.1.5