This commit is contained in:
aaron 2025-03-12 00:32:34 +08:00
parent 975abb3b9c
commit 64cdc5d648
2 changed files with 7 additions and 2 deletions

View File

@ -107,8 +107,13 @@ class RedisClient:
"""
try:
key = f"deliveryman:{user_id}:new_orders"
# 获取订单列表,
orders = self.client.lpop(key)
# 获取所有订单号
orders = []
while True:
order = self.client.lpop(key)
if order is None:
break
orders.append(order)
return orders
except Exception as e:
logging.error(f"获取社区新订单列表失败: {str(e)}")

Binary file not shown.