feat(main): fix PaymentScene tyc

This commit is contained in:
liangzai 2025-01-26 14:29:38 +08:00
parent 217ddad2a1
commit 8242ccf11e

View File

@ -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",
}