This commit is contained in:
aaron 2025-03-12 00:29:56 +08:00
parent d0c32ea532
commit 975abb3b9c
2 changed files with 2 additions and 2 deletions

View File

@ -93,7 +93,7 @@ class RedisClient:
logging.error(f"添加新订单到队列失败: {str(e)}")
return False
def pop_new_orders_from_queue(self, user_id: int, count: int = 10) -> List[str]:
def pop_new_orders_from_queue(self, user_id: int) -> List[str]:
"""
获取社区新订单列表
@ -108,7 +108,7 @@ class RedisClient:
try:
key = f"deliveryman:{user_id}:new_orders"
# 获取订单列表,
orders = self.client.lpop(key, count)
orders = self.client.lpop(key)
return orders
except Exception as e:
logging.error(f"获取社区新订单列表失败: {str(e)}")

Binary file not shown.