feat(main): fix PaymentScene tyc
This commit is contained in:
parent
217ddad2a1
commit
8242ccf11e
@ -98,12 +98,17 @@ func (l *PaymentLogic) Payment(req *types.PaymentReq) (resp *types.PaymentResp,
|
||||
}
|
||||
var orderID int64
|
||||
transErr := l.svcCtx.OrderModel.Trans(l.ctx, func(ctx context.Context, session sqlx.Session) error {
|
||||
|
||||
paymentScene := "app"
|
||||
if brand == "tyc" {
|
||||
paymentScene = "tyc"
|
||||
}
|
||||
order := model.Order{
|
||||
OrderNo: outTradeNo,
|
||||
UserId: userID,
|
||||
ProductId: product.Id,
|
||||
PaymentPlatform: req.PayMethod,
|
||||
PaymentScene: "app",
|
||||
PaymentScene: paymentScene,
|
||||
Amount: amount,
|
||||
Status: "pending",
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user