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:
|
case dbstruct.ProductIdH5ZoneAdmission:
|
||||||
data.Name = "空间会员"
|
data.Name = "空间会员"
|
||||||
if zv != nil {
|
if zv == nil {
|
||||||
data.Price = zv.AdmissionPrice
|
ec = errcode.ErrCodeVasSrvFail
|
||||||
|
return nil, ec, fmt.Errorf("该主播未设置空间价格")
|
||||||
}
|
}
|
||||||
|
data.Price = zv.AdmissionPrice
|
||||||
case dbstruct.ProductIdH5ZoneIronfanship:
|
case dbstruct.ProductIdH5ZoneIronfanship:
|
||||||
data.Name = "铁粉"
|
data.Name = "铁粉"
|
||||||
if zv != nil {
|
if zv == nil {
|
||||||
data.Price = zv.IronfanshipPrice
|
ec = errcode.ErrCodeVasSrvFail
|
||||||
|
return nil, ec, fmt.Errorf("该主播未设置空间价格")
|
||||||
}
|
}
|
||||||
|
data.Price = zv.AdmissionPrice
|
||||||
case dbstruct.ProductIdH5ZoneSuperfanship:
|
case dbstruct.ProductIdH5ZoneSuperfanship:
|
||||||
data.Name = "超粉"
|
data.Name = "超粉"
|
||||||
if zv != nil {
|
if zv == nil {
|
||||||
data.Price = zv.SuperfanshipPrice
|
ec = errcode.ErrCodeVasSrvFail
|
||||||
|
return nil, ec, fmt.Errorf("该主播未设置空间价格")
|
||||||
}
|
}
|
||||||
|
data.Price = zv.AdmissionPrice
|
||||||
data.Validity = zv.GetSuperfanshipDurationDesc()
|
data.Validity = zv.GetSuperfanshipDurationDesc()
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue