|
@@ -1509,6 +1509,7 @@ class DeviceManagement(View):
|
|
|
'otherFeatures': device_ver_info.other_features,
|
|
|
'electricityStatistics': device_ver_info.electricity_statistics,
|
|
|
'supportsPetTracking': device_ver_info.supports_pet_tracking,
|
|
|
+ 'has4gCloud': device_ver_info.has_4g_cloud,
|
|
|
'createdTime': device_ver_info.created_time,
|
|
|
'updatedTime': device_ver_info.updated_time
|
|
|
}
|
|
@@ -1547,6 +1548,7 @@ class DeviceManagement(View):
|
|
|
other_features = request_dict.get('otherFeatures', None)
|
|
|
electricity_statistics = request_dict.get('electricityStatistics', 0)
|
|
|
supports_pet_tracking = request_dict.get('supportsPetTracking', 0)
|
|
|
+ has_4g_cloud = request_dict.get('has4gCloud', -1)
|
|
|
if not all([d_code, software_ver, video_code,
|
|
|
device_type, supports_alarm,
|
|
|
screen_channels, network_type]
|
|
@@ -1587,6 +1589,7 @@ class DeviceManagement(View):
|
|
|
other_features=other_features,
|
|
|
electricity_statistics=electricity_statistics,
|
|
|
supports_pet_tracking=supports_pet_tracking,
|
|
|
+ has_4g_cloud=has_4g_cloud,
|
|
|
created_time=now_time,
|
|
|
updated_time=now_time
|
|
|
)
|
|
@@ -1620,6 +1623,7 @@ class DeviceManagement(View):
|
|
|
other_features = request_dict.get('otherFeatures', None)
|
|
|
electricity_statistics = request_dict.get('electricityStatistics', 0)
|
|
|
supports_pet_tracking = request_dict.get('supportsPetTracking', 0)
|
|
|
+ has_4g_cloud = request_dict.get('has4gCloud', -1)
|
|
|
|
|
|
if not all([device_ver_id, video_code, device_type, supports_alarm, screen_channels, network_type]):
|
|
|
return response.json(444)
|
|
@@ -1668,6 +1672,7 @@ class DeviceManagement(View):
|
|
|
other_features=other_features,
|
|
|
electricity_statistics=electricity_statistics,
|
|
|
supports_pet_tracking=supports_pet_tracking,
|
|
|
+ has_4g_cloud=has_4g_cloud,
|
|
|
created_time=now_time,
|
|
|
updated_time=now_time
|
|
|
)
|