Change condition to check record length

This commit is contained in:
方柳煜 2026-02-02 19:15:46 +08:00 committed by GitHub
parent 3eb2a36f3b
commit 259660f282
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -383,7 +383,7 @@ func newHandouGame(target idiomJSON) func(string) (bool, []byte, error) {
tickTruePinyin[i] = string(tickTruePinyinChar)
tickExistPinyin[i] = string(tickExistPinyinChar)
}
if len(record) == 2 {
if len(record) >= 2 {
tickTruePinyin[0] = pinyin[0]
tickExistChars[0] = chars[0]
}