This commit is contained in:
lwl0608 2024-04-25 15:16:59 +08:00
parent 01e4bfcd8c
commit 8950b008e6
1 changed files with 2 additions and 0 deletions

View File

@ -2380,7 +2380,9 @@ func (s *Service) ApiGetZoneListByUserIdFromOutside(ctx *gin.Context, req *zonep
}
zid := list[0].GetId()
zidZuMap, _ := _DefaultVas.GetZoneUnlockMapByMidZids(ctx, mid, []int64{zid})
logger.Info("_ZU mid: %v, zid: %v, zidZuMap: %v", mid, zid, util.ToJson(zidZuMap))
if zu, ok := zidZuMap[zid]; ok {
logger.Info("_ZU mid: %v, zid: %v, zu: %v", mid, zid, util.ToJson(zu))
if time.Now().Unix()-zu.GetAdmissionCt() < 3600*2 {
refundEnable = 1
}