Преглед изворни кода

美洲服批量保存300条数据

locky пре 1 година
родитељ
комит
d34f2205c5
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      Service/DevicePushService.py

+ 2 - 2
Service/DevicePushService.py

@@ -246,8 +246,8 @@ class DevicePushService:
                 equipment_info_len = redis_obj.llen(equipment_info_key)
                 if CONFIG_INFO == CONFIG_US:
                     # 美洲服批量保存300条数据
-                    if equipment_info_len >= 1000:
-                        end = 999
+                    if equipment_info_len >= 300:
+                        end = 299
                 else:
                     # 缓存数据多于100条,批量保存前100条,否则保存全部
                     equipment_info_len = redis_obj.llen(equipment_info_key)