|
@@ -1365,11 +1365,11 @@ class CronCollectDataView(View):
|
|
|
'www.zositech.xyz', 'smart.loocam2.com'
|
|
|
]
|
|
|
for domain_name in domain_name_list:
|
|
|
- url = 'https://{}/init/health-check'
|
|
|
+ url = 'https://{}/init/health-check'.format(domain_name)
|
|
|
try:
|
|
|
requests.post(url=url, timeout=30)
|
|
|
except Exception as e:
|
|
|
- email_content = 'https请求域名{}出现异常!'.format(domain_name)
|
|
|
+ email_content = 'https请求域名{}出现异常!error_msg:{}'.format(domain_name, repr(e))
|
|
|
S3Email().faEmail(email_content, 'servers@ansjer.com')
|
|
|
return response.json(0)
|
|
|
|