Browse Source

新增通道号

zhangdongming 1 week ago
parent
commit
74923c8578
1 changed files with 1 additions and 0 deletions
  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))
             }
 
             # 时间戳验证