|
@@ -9,7 +9,6 @@ from Model.models import CountryModel, RegionModel, P2PIpModel, DeviceDomainMode
|
|
|
from Object.ResponseObject import ResponseObject
|
|
|
from Service.CommonService import CommonService
|
|
|
from Object.IPWeatherObject import IPQuery
|
|
|
-from Ansjer.config import LOGGER
|
|
|
|
|
|
|
|
|
class ConfirmRegion(View):
|
|
@@ -62,10 +61,8 @@ class ConfirmRegion(View):
|
|
|
'push_api_url': push_api,
|
|
|
'push_region': push_region
|
|
|
}
|
|
|
- LOGGER.info('获取域名:ip:{},响应数据:{}'.format(ip, res))
|
|
|
return response.json(0, res)
|
|
|
except Exception as e:
|
|
|
- LOGGER.info('获取域名异常:error_line:{}, error_msg:{}'.format(e.__traceback__.tb_lineno, repr(e)))
|
|
|
return response.json(500, 'error_line:{}, error_msg:{}'.format(e.__traceback__.tb_lineno, repr(e)))
|
|
|
|
|
|
|
|
@@ -85,7 +82,6 @@ class ConfirmRegionV2(View):
|
|
|
|
|
|
serial_number = request.GET.get('serial_number', None)
|
|
|
if not serial_number:
|
|
|
- LOGGER.info('V2获取域名缺少序列号:ip:{}'.format(ip))
|
|
|
return response.json(444)
|
|
|
try:
|
|
|
data_dict = {'serial_number': serial_number}
|
|
@@ -133,10 +129,8 @@ class ConfirmRegionV2(View):
|
|
|
'region_id': region_id,
|
|
|
'push_region': push_region
|
|
|
}
|
|
|
- LOGGER.info('V2获取域名:序列号:{},ip:{},响应数据:{}'.format(serial_number, ip, res))
|
|
|
return response.json(0, res)
|
|
|
except Exception as e:
|
|
|
- LOGGER.info('V2获取域名异常:error_line:{}, error_msg:{}'.format(e.__traceback__.tb_lineno, repr(e)))
|
|
|
return response.json(500, 'error_line:{}, error_msg:{}'.format(e.__traceback__.tb_lineno, repr(e)))
|
|
|
|
|
|
|