no message

This commit is contained in:
aaron 2025-03-16 12:04:21 +08:00
parent 1f95b83341
commit cc00274eab

View File

@ -193,7 +193,10 @@ async def pre_order(
UserDB.is_delivering == True
).first()
if not deliveryman_online:
print(f"deliveryman_online: {deliveryman_online}")
if deliveryman_online is None:
print(f"没有配送员在线, 无法下单")
return error_response(code=400, message="没有配送员在线, 无法下单")