Merge branch 'feat-IRONFANS-70' into test

This commit is contained in:
lwl0608 2024-04-25 15:17:30 +08:00
commit ff3e66eca6
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
}