fix zone VIP

This commit is contained in:
lwl0608 2024-05-06 18:02:06 +08:00
parent 4bc9900fbd
commit 5ef25b96f4
1 changed files with 3 additions and 1 deletions

View File

@ -2825,7 +2825,9 @@ func (s *Service) ApiGetZoneMomentListByZid(ctx *gin.Context, req *zonemomentpro
zoneZidMap[zone.GetId()] = zone zoneZidMap[zone.GetId()] = zone
} }
if zoneZidMap[util.DerefInt64(req.Zid)] == nil { if zoneZidMap[util.DerefInt64(req.Zid)] == nil {
if zidZuMap[util.DerefInt64(req.Zid)] == nil { if IsZoneVIP(req.BaseRequest.Mid) {
logger.Info("_ZoneVIP moment mid: %v, zid: %v", req.BaseRequest.Mid, req.Zid)
} else if zidZuMap[util.DerefInt64(req.Zid)] == nil {
logger.Error("Visitor has not unlocked this zone, req: %v, err: %v", util.ToJson(req), err) logger.Error("Visitor has not unlocked this zone, req: %v, err: %v", util.ToJson(req), err)
ec = errcode.ErrCodeUnlockedZone ec = errcode.ErrCodeUnlockedZone
return return