Explorar o código

event_type转为int类型

locky %!s(int64=3) %!d(string=hai) anos
pai
achega
03fbf6f5fb
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      Controller/gatewayController.py

+ 1 - 0
Controller/gatewayController.py

@@ -45,6 +45,7 @@ class GatewayView(View):
         now_time = int(time.time())
         device_user_id = '160879593527813800138000'
         try:
+            event_type = int(event_type)
             equipment_info_list.append(EquipmentInfoService.get_equipment_info_obj(
                 now_time,
                 add_time=now_time,