diff --git a/app/api/endpoints/order.py b/app/api/endpoints/order.py index c9f4905..8d2c70c 100644 --- a/app/api/endpoints/order.py +++ b/app/api/endpoints/order.py @@ -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="没有配送员在线, 无法下单") # 检查是否有未支付的订单 diff --git a/jobs.sqlite b/jobs.sqlite index f82eabe..dca64bd 100644 Binary files a/jobs.sqlite and b/jobs.sqlite differ