This commit is contained in:
aaron 2025-02-24 21:18:30 +08:00
parent 3914831cc9
commit 2a358bf82e

View File

@ -93,9 +93,9 @@ def calculate_price(price_request: OrderPriceCalculateRequest,user: UserDB,db: S
CommunityDB.id == price_request.community_id CommunityDB.id == price_request.community_id
).first() ).first()
if community: if community:
base_price = community.base_price base_price = float(community.base_price)
extra_package_price = community.extra_package_price extra_package_price = float(community.extra_package_price)
extra_package_threshold = community.extra_package_threshold extra_package_threshold = int(community.extra_package_threshold)
original_amount = base_price original_amount = base_price