mirror of
https://github.com/PaiGramTeam/PamGram.git
synced 2024-11-16 03:55:26 +00:00
🐛 Fix recognize error return
This commit is contained in:
parent
10683c9f32
commit
7dc029f25b
@ -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