This commit is contained in:
aaron 2025-03-08 23:47:44 +08:00
parent b053b628f1
commit a8cd338acc

View File

@ -275,7 +275,7 @@ async def create_order(
for package in order.price_request.packages:
# 如果包裹有取件码,则创建包裹
if len(package.pickup_codes) > 0:
if not station_name:
if not package.station_name:
station = db.query(StationDB).filter(
StationDB.id == package.station_id
).first()