|
@@ -990,15 +990,12 @@ class testView(View):
|
|
|
if not serial_number:
|
|
|
return response.json(0)
|
|
|
|
|
|
- if not CONFIG_INFO == "cn":
|
|
|
- return response.json(0, [])
|
|
|
-
|
|
|
def fetch_data(url, data, server_info, results_data):
|
|
|
try:
|
|
|
max_retries = 3
|
|
|
res = ""
|
|
|
for i in range(max_retries):
|
|
|
- res = requests.post(url, data=data, timeout=10)
|
|
|
+ res = requests.post(url, data=data, timeout=30)
|
|
|
if res.status_code == 200:
|
|
|
break
|
|
|
result = json.loads(res.text)
|