fix:订单优化

This commit is contained in:
momo 2023-11-02 15:20:32 +08:00
parent 6dfdd667ad
commit cf2a352f1e

View File

@ -1047,7 +1047,7 @@ func (d *defaultOrder) CreatePrePaymentByBalance(ctx context.Context, in *Create
payConfig := &pay.Config{}
payConfig.Stripe.PayType = "intent"
payConfig.Stripe.Key = in.StripeKey
var metadata = make(map[string]string, 2)
var metadata = make(map[string]string, 4)
metadata["model"] = "product_order"
metadata["order_sn"] = in.OrderSn
metadata["pay_stage"] = "remaining_balance"
@ -1216,7 +1216,7 @@ func (d *defaultOrder) CreatePrePaymentByDeposit(ctx context.Context, in *Create
payConfig := &pay.Config{}
payConfig.Stripe.PayType = "intent"
payConfig.Stripe.Key = in.StripeKey
var metadata = make(map[string]string, 2)
var metadata = make(map[string]string, 4)
metadata["model"] = "product_order"
metadata["order_sn"] = in.OrderSn
metadata["pay_stage"] = "deposit"