Sfoglia il codice sorgente

优化查询电池电量列表

zhangdongming 4 mesi fa
parent
commit
4bf747af43
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      Controller/UserDevice/DeviceReportController.py

+ 1 - 1
Controller/UserDevice/DeviceReportController.py

@@ -56,7 +56,7 @@ class DeviceReportView(View):
         if operation == 'getBatteryCapacityList':  # 获取电池电量列表
         if operation == 'getBatteryCapacityList':  # 获取电池电量列表
             return self.get_battery_capacity_list(userID, request, request_dict, response)
             return self.get_battery_capacity_list(userID, request, request_dict, response)
         elif operation == 'getWakeSleepData':
         elif operation == 'getWakeSleepData':
-            return self
+            return self.get_wake_sleep_data(response)
 
 
     @classmethod
     @classmethod
     def get_wake_sleep_data(cls, response):
     def get_wake_sleep_data(cls, response):