|
|
@@ -274,10 +274,10 @@ export default function OrderPage() {
|
|
|
|
|
|
const order = await createOrderMutation.mutateAsync(orderData)
|
|
|
|
|
|
- // 发起支付
|
|
|
+ // 发起支付(金额需要转换为分)
|
|
|
await createPaymentMutation.mutateAsync({
|
|
|
orderId: order.id,
|
|
|
- totalAmount: totalPrice,
|
|
|
+ totalAmount: Math.round(totalPrice * 100), // 转换为分
|
|
|
description: `${decodedActivityName || '出行'}订单`
|
|
|
})
|
|
|
|