Merge branch 'feat-IRONFANS-70' into test

This commit is contained in:
lwl0608 2024-04-24 22:35:17 +08:00
commit 8323f3917a
1 changed files with 8 additions and 0 deletions

View File

@ -1980,6 +1980,14 @@ func (v *Vas) RefundOrder(ctx *gin.Context, req *vasproto.RefundOrderReq, opt *v
case dbstruct.ProductTypeZone:
switch product.Id {
case dbstruct.ProductIdH5ZoneAdmission:
if opt == nil {
opt = vasproto.NewRefundOrderOpt().SetZoneRefundReq(&vasproto.ZoneRefundReq{
Zid: order.GetZid(),
ContactName: "op",
ContactPhone: "op",
Note: "op",
})
}
err = v.refundZoneAdmission(ctx, order, req, opt)
default:
err = fmt.Errorf("不支持该商品退款: %s", product.Id)