zv fix
This commit is contained in:
parent
a3555962d8
commit
2177fdadbb
|
@ -681,19 +681,25 @@ func (s *Service) ZoneGetCashier(ctx *gin.Context, req *vasproto.ZoneGetCashierR
|
|||
}
|
||||
case dbstruct.ProductIdH5ZoneAdmission:
|
||||
data.Name = "空间会员"
|
||||
if zv != nil {
|
||||
data.Price = zv.AdmissionPrice
|
||||
if zv == nil {
|
||||
ec = errcode.ErrCodeVasSrvFail
|
||||
return nil, ec, fmt.Errorf("该主播未设置空间价格")
|
||||
}
|
||||
data.Price = zv.AdmissionPrice
|
||||
case dbstruct.ProductIdH5ZoneIronfanship:
|
||||
data.Name = "铁粉"
|
||||
if zv != nil {
|
||||
data.Price = zv.IronfanshipPrice
|
||||
if zv == nil {
|
||||
ec = errcode.ErrCodeVasSrvFail
|
||||
return nil, ec, fmt.Errorf("该主播未设置空间价格")
|
||||
}
|
||||
data.Price = zv.AdmissionPrice
|
||||
case dbstruct.ProductIdH5ZoneSuperfanship:
|
||||
data.Name = "超粉"
|
||||
if zv != nil {
|
||||
data.Price = zv.SuperfanshipPrice
|
||||
if zv == nil {
|
||||
ec = errcode.ErrCodeVasSrvFail
|
||||
return nil, ec, fmt.Errorf("该主播未设置空间价格")
|
||||
}
|
||||
data.Price = zv.AdmissionPrice
|
||||
data.Validity = zv.GetSuperfanshipDurationDesc()
|
||||
}
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue