update
This commit is contained in:
parent
d0c32ea532
commit
975abb3b9c
@ -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)}")
|
||||
|
||||
BIN
jobs.sqlite
BIN
jobs.sqlite
Binary file not shown.
Loading…
Reference in New Issue
Block a user