fix panic
This commit is contained in:
parent
3cdc52c75e
commit
33e8d70e24
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue