This commit is contained in:
aaron 2025-02-12 21:07:35 +08:00
parent 8b5a5988e3
commit 82ade7e0a8

View File

@ -66,7 +66,7 @@ async def create_pay_order(
merchant_id=order.merchant_id,
user_id=current_user.userid,
amount=order.amount,
gift_points=order.amount * (merchant.pay_gift_points_rate / 100) * settings.POINT_RATIO
gift_points=order.amount * (float(merchant.pay_gift_points_rate) / 100) * settings.POINT_RATIO
)
try: