This commit is contained in:
lwl0608 2024-04-16 19:39:51 +08:00
parent a3555962d8
commit 2177fdadbb
1 changed files with 12 additions and 6 deletions

View File

@ -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