Procházet zdrojové kódy

优化编辑设备型号版本代码

linhaohong před 7 měsíci
rodič
revize
ff493f7cf6
1 změnil soubory, kde provedl 1 přidání a 6 odebrání
  1. 1 6
      AdminController/DeviceManagementController.py

+ 1 - 6
AdminController/DeviceManagementController.py

@@ -1538,8 +1538,6 @@ class DeviceManagement(View):
     @staticmethod
     def edit_device_ver_info(request_dict, response):
         device_ver_id = request_dict.get('deviceVerId', None)
-        d_code = request_dict.get('dCode', None)
-        software_ver = request_dict.get('softwareVer', None)
         firmware_ver = request_dict.get('firmwareVer', "")
         video_code = request_dict.get('videoCode', None)
         region_alexa = request_dict.get('regionAlexa', "")
@@ -1561,8 +1559,7 @@ class DeviceManagement(View):
         network_type = request_dict.get('networkType', None)
         other_features = request_dict.get('otherFeatures', None)
 
-        if not all([device_ver_id, d_code, software_ver, video_code,
-                    device_type, supports_alarm, screen_channels, network_type]):
+        if not all([device_ver_id, video_code, device_type, supports_alarm, screen_channels, network_type]):
             return response.json(444)
         try:
             now_time = int(time.time())
@@ -1587,8 +1584,6 @@ class DeviceManagement(View):
                 redis.del_data(version_key)
 
             device_version_info_qs.update(
-                d_code=d_code,
-                software_ver=software_ver,
                 firmware_ver=firmware_ver,
                 video_code=video_code,
                 region_alexa=region_alexa,