|
|
@@ -40,7 +40,7 @@ def dsj_qxz_conf_info():
|
|
|
os.makedirs(cbd_path) if not os.path.exists(cbd_path) else None
|
|
|
file_name = (i.addr).split("/")[-1]
|
|
|
local_addr = os.path.join(cbd_path, file_name)
|
|
|
- response = requests.get(addr)
|
|
|
+ response = requests.get(addr, timeout=2)
|
|
|
tb = ""
|
|
|
try:
|
|
|
if int(response.status_code) == 200:
|
|
|
@@ -56,7 +56,7 @@ def dsj_qxz_conf_info():
|
|
|
os.makedirs(indentyfy_path) if not os.path.exists(indentyfy_path) else None
|
|
|
indentyfy_file_name = (i.indentify_photo).split("/")[-1]
|
|
|
indentyfy_local_addr = os.path.join(indentyfy_path, indentyfy_file_name)
|
|
|
- response = requests.get(indentyfy_addr)
|
|
|
+ response = requests.get(indentyfy_addr, timeout=2)
|
|
|
indentyfy_tb = ""
|
|
|
try:
|
|
|
if int(response.status_code) == 200:
|