MaaAssistantArknights / MaaBackendCenter

MAA Copilot Backend
https://prts.plus
GNU Affero General Public License v3.0
73 stars 50 forks source link

修复找回密码时,未正常处理验证码匹配失败产生的跨线程异常 #123

Closed Nagico closed 1 year ago

Nagico commented 1 year ago

在修 https://github.com/MaaAssistantArknights/maa-copilot-frontend/pull/192 也就是 #119 这个bug时发现:

在新线程中若验证码错误会直接assert抛出异常,web线程不会捕获到该异常,结果就是response一直为200

image


于是把异步的注解删了

LuoRenMu commented 1 year ago

Thanks for your contribution!