Ver Fonte

新增通道号

zhangdongming há 1 semana atrás
pai
commit
74923c8578
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      Controller/DeviceReportController.py

+ 1 - 0
Controller/DeviceReportController.py

@@ -53,6 +53,7 @@ class DeviceReportView(View):
                 'working_hours': self.parse_int_param(data, 'workingHours'),
                 'battery_level': self.parse_int_param(data, 'batteryLevel'),
                 'report_time': self.parse_int_param(data, 'reportTime') - 3600,
+                'channel': int(data.get('channel', 1))
             }
 
             # 时间戳验证