Merge branch 'fix_panicc' into test

This commit is contained in:
lwl0608 2024-07-24 16:42:57 +08:00
commit fc37a1595f
1 changed files with 4 additions and 0 deletions

View File

@ -900,6 +900,10 @@ func (s *Service) ZoneGetCashier(ctx *gin.Context, req *vasproto.ZoneGetCashierR
}
data.Price = zv.IronfanshipPrice
case dbstruct.ProductIdH5ZoneSuperfanship:
if zv == nil {
ec = errcode.ErrCodeVasSrvFail
return nil, ec, fmt.Errorf("主播没开通空间")
}
// 判断主播是否开启超粉
if zv.IsSuperfanshipEnabled != 1 {
ec = errcode.ErrCodeVasSrvFail