瀏覽代碼

修改美洲服存表方式

locky 1 年之前
父節點
當前提交
8a9e0a7447
共有 1 個文件被更改,包括 8 次插入8 次删除
  1. 8 8
      Service/DevicePushService.py

+ 8 - 8
Service/DevicePushService.py

@@ -245,14 +245,14 @@ class DevicePushService:
                 end = 0
                 equipment_info_len = redis_obj.llen(equipment_info_key)
 
-                if CONFIG_INFO == CONFIG_US:
-                    # 美洲服批量保存300条数据
-                    if equipment_info_len >= 500:
-                        end = 499
-                else:
-                    # 缓存数据多于100条,批量保存前100条,否则保存全部
-                    equipment_info_len = redis_obj.llen(equipment_info_key)
-                    end = 99 if equipment_info_len > 100 else equipment_info_len - 1
+                # if CONFIG_INFO == CONFIG_US:
+                #     # 美洲服批量保存300条数据
+                #     if equipment_info_len >= 500:
+                #         end = 499
+                # else:
+                # 缓存数据多于100条,批量保存前100条,否则保存全部
+                equipment_info_len = redis_obj.llen(equipment_info_key)
+                end = 99 if equipment_info_len > 100 else equipment_info_len - 1
 
                 if end != 0:
                     equipment_info_redis_list = redis_obj.lrange(equipment_info_key, 0, end)