refund
This commit is contained in:
parent
779e47996e
commit
9e1a95bfe3
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue