|
@@ -242,14 +242,14 @@ class SphNrxs:
|
|
|
'Content-Type': 'application/json'
|
|
|
}
|
|
|
try:
|
|
|
- time.sleep(2)
|
|
|
+ # time.sleep(2)
|
|
|
response = requests.request("POST", url, headers=headers, data=payload)
|
|
|
response = response.json()
|
|
|
- if response['data'] == None:
|
|
|
- sqlCollect.update_machine_making_reflux(uid)
|
|
|
- return
|
|
|
code = response['code']
|
|
|
if code == 0:
|
|
|
+ if response['data'] == None:
|
|
|
+ sqlCollect.update_machine_making_reflux(uid)
|
|
|
+ return
|
|
|
status = sqlCollect.select_crawler_uesr_v3(uid)
|
|
|
if status:
|
|
|
pq_id = re.sub(r'[(),]', '', str(status))
|