fix 退款理由
This commit is contained in:
parent
f1728bb5a3
commit
1255e0f916
|
@ -2705,7 +2705,7 @@ func (v *Vas) refundMembership(ctx *gin.Context, order *dbstruct.Order, req *vas
|
|||
resp, err := alipayCli.RefundOne(ctx, &alipaycli.RefundOneParam{
|
||||
OutTradeNo: orderId,
|
||||
RefundAmount: order.GetPayAmount(),
|
||||
RefundReason: "发货D退款",
|
||||
RefundReason: "用户退款",
|
||||
})
|
||||
if err != nil {
|
||||
logger.Error("alipayCli.RefundOne fail, orderId: %v, resp: %v, err: %v", orderId, util.ToJson(resp), err)
|
||||
|
@ -2716,7 +2716,7 @@ func (v *Vas) refundMembership(ctx *gin.Context, order *dbstruct.Order, req *vas
|
|||
resp, err := wxpayCli.RefundOne(ctx, &wxpaycli.RefundOneParam{
|
||||
OutTradeNo: orderId,
|
||||
RefundAmount: order.GetPayAmount(),
|
||||
RefundReason: "发货D退款",
|
||||
RefundReason: "用户退款",
|
||||
})
|
||||
if err != nil {
|
||||
logger.Error("wxpayCli.RefundOne fail, orderId: %v, resp: %v, err: %v", orderId, util.ToJson(resp), err)
|
||||
|
@ -2822,7 +2822,7 @@ func (v *Vas) refundCoins(ctx *gin.Context, order *dbstruct.Order, req *vasproto
|
|||
resp, err := alipayCli.RefundOne(ctx, &alipaycli.RefundOneParam{
|
||||
OutTradeNo: orderId,
|
||||
RefundAmount: order.GetPayAmount(),
|
||||
RefundReason: "发货A退款",
|
||||
RefundReason: "用户退款",
|
||||
})
|
||||
if err != nil {
|
||||
logger.Error("alipayCli.RefundOne fail, orderId: %v, resp: %v, err: %v", orderId, util.ToJson(resp), err)
|
||||
|
@ -2833,7 +2833,7 @@ func (v *Vas) refundCoins(ctx *gin.Context, order *dbstruct.Order, req *vasproto
|
|||
resp, err := wxpayCli.RefundOne(ctx, &wxpaycli.RefundOneParam{
|
||||
OutTradeNo: orderId,
|
||||
RefundAmount: order.GetPayAmount(),
|
||||
RefundReason: "发货A退款",
|
||||
RefundReason: "用户退款",
|
||||
})
|
||||
if err != nil {
|
||||
logger.Error("wxpayCli.RefundOne fail, orderId: %v, resp: %v, err: %v", orderId, util.ToJson(resp), err)
|
||||
|
@ -2939,7 +2939,7 @@ func (v *Vas) refundMoneyContactWechat(ctx *gin.Context, order *dbstruct.Order,
|
|||
resp, err := alipayCli.RefundOne(ctx, &alipaycli.RefundOneParam{
|
||||
OutTradeNo: orderId,
|
||||
RefundAmount: order.GetPayAmount(),
|
||||
RefundReason: "发货A退款",
|
||||
RefundReason: "用户退款",
|
||||
})
|
||||
if err != nil {
|
||||
logger.Error("alipayCli.RefundOne fail, orderId: %v, resp: %v, err: %v", orderId, util.ToJson(resp), err)
|
||||
|
@ -2950,7 +2950,7 @@ func (v *Vas) refundMoneyContactWechat(ctx *gin.Context, order *dbstruct.Order,
|
|||
resp, err := wxpayCli.RefundOne(ctx, &wxpaycli.RefundOneParam{
|
||||
OutTradeNo: orderId,
|
||||
RefundAmount: order.GetPayAmount(),
|
||||
RefundReason: "发货A退款",
|
||||
RefundReason: "用户退款",
|
||||
})
|
||||
if err != nil {
|
||||
logger.Error("wxpayCli.RefundOne fail, orderId: %v, resp: %v, err: %v", orderId, util.ToJson(resp), err)
|
||||
|
|
|
@ -119,7 +119,7 @@ func TestWxpayClient_RefundOne(t *testing.T) {
|
|||
resp, err := cli.RefundOne(context.Background(), &RefundOneParam{
|
||||
OutTradeNo: "1767893922425614336",
|
||||
RefundAmount: 4900,
|
||||
RefundReason: "发货D退款",
|
||||
RefundReason: "用户退款",
|
||||
})
|
||||
if err != nil {
|
||||
t.Log(err.Error())
|
||||
|
|
Loading…
Reference in New Issue