mirror of
https://github.com/PaiGramTeam/MibooGram.git
synced 2024-11-21 14:48:29 +00:00
🐛 Fix recognize error return
This commit is contained in:
parent
b41bdbb24e
commit
22ee6cbf57
@ -44,6 +44,7 @@ class RecognizeSystem:
|
||||
data = resp.json()
|
||||
if data.get("code", 0) != 0:
|
||||
logger.error("recognize 解析错误:[%s]%s", data.get("code"), data.get("msg"))
|
||||
return None
|
||||
logger.info("recognize 解析成功")
|
||||
return data["data"]["validate"]
|
||||
except JSONDecodeError:
|
||||
|
Loading…
Reference in New Issue
Block a user