mirror of
https://github.com/Cp0204/quark-auto-save.git
synced 2026-01-13 15:50:45 +08:00
🐛 修复提取码验证响应处理
- 修改条件判断,确保仅在状态为200时返回数据 - 提高错误处理的准确性,增强代码健壮性
This commit is contained in:
parent
feb4e99bae
commit
e3b4f41307
@ -215,7 +215,7 @@ class Quark:
|
||||
response = requests.request(
|
||||
"POST", url, json=payload, headers=headers, params=querystring
|
||||
).json()
|
||||
if response.get("data"):
|
||||
if response.get("status") == 200:
|
||||
return True, response["data"]["stoken"]
|
||||
else:
|
||||
return False, response["message"]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user