no message
This commit is contained in:
parent
1f95b83341
commit
cc00274eab
@ -193,7 +193,10 @@ async def pre_order(
|
|||||||
UserDB.is_delivering == True
|
UserDB.is_delivering == True
|
||||||
).first()
|
).first()
|
||||||
|
|
||||||
if not deliveryman_online:
|
print(f"deliveryman_online: {deliveryman_online}")
|
||||||
|
|
||||||
|
if deliveryman_online is None:
|
||||||
|
print(f"没有配送员在线, 无法下单")
|
||||||
return error_response(code=400, message="没有配送员在线, 无法下单")
|
return error_response(code=400, message="没有配送员在线, 无法下单")
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user