This commit is contained in:
lwl0608 2024-04-24 22:35:00 +08:00
parent 327a38177f
commit cd840f36e4
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)