添加响应体检查

This commit is contained in:
Jing Ling
2020-07-08 10:57:47 +08:00
parent 584323677d
commit f42e02daa0
+2
View File
@@ -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: