调整兰溪本地流水条数为200
This commit is contained in:
@@ -17,6 +17,8 @@ logger = logging.getLogger(__name__)
|
||||
class StatementService:
|
||||
"""流水数据服务"""
|
||||
|
||||
FIXED_TOTAL_COUNT = 200
|
||||
|
||||
def __init__(self, file_service=None):
|
||||
# 缓存:logId -> (statements_list, total_count)
|
||||
self._cache: Dict[int, tuple] = {}
|
||||
@@ -199,8 +201,7 @@ class StatementService:
|
||||
page_size = request.pageSize
|
||||
|
||||
if log_id not in self._cache:
|
||||
total_rng = random.Random(f"total:{log_id}")
|
||||
total_count = total_rng.randint(1200, 1500)
|
||||
total_count = self.FIXED_TOTAL_COUNT
|
||||
all_statements = self._generate_statements(group_id, log_id, total_count)
|
||||
self._cache[log_id] = (all_statements, total_count)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user