This commit is contained in:
aaron 2025-03-16 11:52:38 +08:00
parent f28bd2a642
commit c0a7eb3d3f
2 changed files with 7 additions and 7 deletions

View File

@ -185,14 +185,14 @@ async def pre_order(
current_user: UserDB = Depends(get_current_user)
):
# 检查是否有配送员在线
deliveryman_online = db.query(UserDB).filter(
UserDB.community_id == request.community_id,
UserDB.is_delivering == True
).first()
# # 检查是否有配送员在线
# deliveryman_online = db.query(UserDB).filter(
# UserDB.community_id == request.community_id,
# UserDB.is_delivering == True
# ).first()
if not deliveryman_online:
return error_response(code=400, message="没有配送员在线, 无法下单")
# if not deliveryman_online:
# return error_response(code=400, message="没有配送员在线, 无法下单")
# 检查是否有未支付的订单

Binary file not shown.