Api: Fix showing "HEADERS incomplete"
This commit is contained in:
parent
426f4d6273
commit
7692757091
4
api.py
4
api.py
@ -163,6 +163,10 @@ class XiGuaLiveApi:
|
|||||||
if "data" not in d or "extra" not in d or "cursor" not in d["extra"]:
|
if "data" not in d or "extra" not in d or "cursor" not in d["extra"]:
|
||||||
if DEBUG:
|
if DEBUG:
|
||||||
print(d)
|
print(d)
|
||||||
|
if "base_resp" in d:
|
||||||
|
if d["base_resp"]["status_code"] != 10038:
|
||||||
|
print(d["base_resp"]["status_message"])
|
||||||
|
else:
|
||||||
self.apiChangedError("数据结构改变,请与我联系")
|
self.apiChangedError("数据结构改变,请与我联系")
|
||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
|
Reference in New Issue
Block a user