fix wx payment
This commit is contained in:
		| @@ -82,7 +82,7 @@ func (l *PaymentLogic) Payment(req *types.PaymentReq) (resp *types.PaymentResp, | ||||
| 		amount = product.SellPrice | ||||
| 	} | ||||
| 	var createOrderErr error | ||||
| 	if req.PayMethod == "wechatpay" { | ||||
| 	if req.PayMethod == "wechat" { | ||||
| 		outTradeNo = l.svcCtx.WechatPayService.GenerateOutTradeNo() | ||||
| 		prepayData, createOrderErr = l.svcCtx.WechatPayService.CreateWechatOrder(l.ctx, amount, product.ProductName, outTradeNo) | ||||
| 	} else if req.PayMethod == "alipay" { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user