Explorar o código

修复测试工具删除设备接口bug

locky %!s(int64=2) %!d(string=hai) anos
pai
achega
9bbae63a90
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Controller/EquipmentManagerV3.py

+ 1 - 1
Controller/EquipmentManagerV3.py

@@ -972,7 +972,7 @@ class EquipmentManagerV3(View):
                 return response.json(13)
 
             with transaction.atomic():
-                Device_Info.objects.filter(userID_id=user_id, uid=uid).delete()
+                Device_Info.objects.filter(userID_id=user_id, UID=uid).delete()
                 # 删除推送消息
                 for val in range(1, 8):
                     EquipmentInfoService.get_equipment_info_model('', val). \