|
@@ -113,10 +113,12 @@ class IotCoreView(View):
|
|
|
# 判断设备是否已注册证书
|
|
|
if not iotdeviceInfo_qs.exists():
|
|
|
thingGroup = device_version + '_' + language
|
|
|
- if SERVER_TYPE == 'Ansjer.us_config.formal_settings': # 国外正式配置使用固定ip进行测试
|
|
|
- ip = '67.220.90.13'
|
|
|
- else:
|
|
|
- ip = CommonService.get_ip_address(request)
|
|
|
+ # 设备模拟国外环境测试
|
|
|
+ # if SERVER_TYPE == 'Ansjer.us_config.formal_settings': # 国外正式配置使用固定ip进行测试
|
|
|
+ # ip = '67.220.90.13'
|
|
|
+ # else:
|
|
|
+ # ip = CommonService.get_ip_address(request)
|
|
|
+ ip = CommonService.get_ip_address(request)
|
|
|
region_id = Device_Region().get_device_region(ip)
|
|
|
|
|
|
iotClient = IOTClient(region_id)
|