Skip to content

fix: 新增 ensure_on_field_not_empty 函数,确保前台不为空#111

Open
ghjcfrt wants to merge 1 commit intoShasnow:mainfrom
ghjcfrt:2026.02.16
Open

fix: 新增 ensure_on_field_not_empty 函数,确保前台不为空#111
ghjcfrt wants to merge 1 commit intoShasnow:mainfrom
ghjcfrt:2026.02.16

Conversation

@ghjcfrt
Copy link
Contributor

@ghjcfrt ghjcfrt commented Feb 16, 2026

fix: 新增 ensure_on_field_not_empty 函数,确保前台不为空、

注意,目前存在潜在问题
当ocr模块因未知原因可以识别到文字,但识别错误或识别不全时,不会抛出报错,而是继续战斗,这会导致手牌、前台、后台全部为none,卡死。该问题可以通过重启sra解决,但不仔细观察可能不会发现问题
例如
2e636f564b144a5b3bf4a2326ca868dc

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