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