fixbug:解决抢答和获取任务的问题

This commit is contained in:
Liu
2025-02-21 19:47:33 +08:00
parent 5236aead6c
commit 17c44d2c22

View File

@@ -305,6 +305,16 @@ def submit_answer(group_id, player_id, task_id, answer):
f"🌈 比如1\n"
f"🎀 再试一次吧!"
)
except Exception as e :
print(f"submit_answer:{e}")
return (
f"😅 哎呀,小调皮\n"
f"🌟 任务ID格式不对哦\n"
f"🎈 应该是纯数字\n"
f"🌈 比如1\n"
f"🎀 再试一次吧!"
)
finally:
cursor.close()
conn.close()