mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 14:22:55 +08:00
修复词条含有CQ回答的模糊匹配无法被解析
This commit is contained in:
parent
270a5a5e20
commit
4e551bec0d
@ -279,6 +279,11 @@ PS: **ARM平台** 请使用全量版 同时 **如果你的机器 RAM < 1G 可能
|
|||||||
|
|
||||||
## 更新
|
## 更新
|
||||||
|
|
||||||
|
### 2022/9/3
|
||||||
|
|
||||||
|
* 原神玩家查询增加须弥地区 [@pull/1053](https://github.com/HibiKier/zhenxun_bot/pull/1053)
|
||||||
|
* 修复词条含有CQ回答的模糊匹配无法被解析
|
||||||
|
|
||||||
### 2022/8/27
|
### 2022/8/27
|
||||||
|
|
||||||
* 修复签到积分双倍后,日志记录获得积分变4倍问题 [@pull/1044](https://github.com/HibiKier/zhenxun_bot/pull/1044)
|
* 修复签到积分双倍后,日志记录获得积分变4倍问题 [@pull/1044](https://github.com/HibiKier/zhenxun_bot/pull/1044)
|
||||||
|
|||||||
@ -293,7 +293,7 @@ class WordBank(db.Model):
|
|||||||
answer_list = await db.all(db.text(query), problem=problem)
|
answer_list = await db.all(db.text(query), problem=problem)
|
||||||
answer = random.choice(answer_list)
|
answer = random.choice(answer_list)
|
||||||
return (
|
return (
|
||||||
await cls._format2answer(problem, answer[7], answer[1], answer[2])
|
await cls._format2answer(answer[6], answer[7], answer[1], answer[2])
|
||||||
if answer.placeholder
|
if answer.placeholder
|
||||||
else answer.answer
|
else answer.answer
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user