This commit is contained in:
lwl0608 2024-03-13 20:38:03 +08:00
parent 779e47996e
commit 9e1a95bfe3
1 changed files with 12 additions and 0 deletions

View File

@ -2648,6 +2648,17 @@ func (v *Vas) refundMembership(ctx *gin.Context, order *dbstruct.Order, req *vas
} }
} }
// 干掉mongo表
err = v.account.OpUpdate(ctx, &accountproto.OpUpdateReq{
Account: &dbstruct.Account{
Mid: goproto.Int64(order.GetMid()),
IsAMember: goproto.Int64(0),
},
})
if err != nil {
return err
}
// 退款 // 退款
switch order.GetPayType() { switch order.GetPayType() {
case vasproto.PayTypeAlipay, vasproto.PayTypeAlipayH5: case vasproto.PayTypeAlipay, vasproto.PayTypeAlipayH5:
@ -2673,5 +2684,6 @@ func (v *Vas) refundMembership(ctx *gin.Context, order *dbstruct.Order, req *vas
return err return err
} }
} }
return nil return nil
} }