Эх сурвалжийг харах

优化app设备类型添加接口

guanhailong 3 жил өмнө
parent
commit
4a66fe9a99

+ 3 - 3
AdminController/DeviceManagementController.py

@@ -139,9 +139,9 @@ class DeviceManagement(View):
                         if not app_bundle_qs.exists():
                             AppBundle.objects.create(app_bundle_id=app_bundle_name, id=app_id)
                 #判断数据是否存在,是否上传
-                app_device_type_qs = AppDeviceType.objects.filter(type=type).values()
-                if app_device_type_qs.exists():
-                    return response.json(174)
+                # app_device_type_qs = AppDeviceType.objects.filter(type=type).values()
+                # if app_device_type_qs.exists():
+                #     return response.json(174)
                 # S3下文件夹路径+文件名 组成对象key
                 file_key = 'app/device_type_images/{}'.format(fileName)
                 s3 = AmazonS3Util(AWS_ACCESS_KEY_ID[1], AWS_SECRET_ACCESS_KEY[1], AWS_SES_ACCESS_REGION)