mirror of
https://github.com/shmilylty/OneForAll.git
synced 2026-08-26 04:47:48 +08:00
添加响应体检查
This commit is contained in:
@@ -22,6 +22,8 @@ class PhoneBook(Query):
|
|||||||
data = {"term": self.domain, "maxresults": 1000000, "media": 0, "target": 1,
|
data = {"term": self.domain, "maxresults": 1000000, "media": 0, "target": 1,
|
||||||
"terminate": [], "timeout": 20}
|
"terminate": [], "timeout": 20}
|
||||||
resp = self.post(url, json=data)
|
resp = self.post(url, json=data)
|
||||||
|
if not resp:
|
||||||
|
return
|
||||||
json = resp.json()
|
json = resp.json()
|
||||||
ids = json.get('id')
|
ids = json.get('id')
|
||||||
if not ids:
|
if not ids:
|
||||||
|
|||||||
Reference in New Issue
Block a user