暂时不校验开服时间
This commit is contained in:
parent
308c5258eb
commit
85dcb10510
@ -42,15 +42,15 @@ func (this *apiComp) GetList(session comm.IUserSession, req *pb.IntegralGetListR
|
||||
if curTime > list.Etime { // 更新赛季
|
||||
szConf := this.module.configure.GetIntegralITime()
|
||||
// 当前开服时间
|
||||
openTime := this.module.service.GetOpentime().Unix()
|
||||
//openTime := this.module.service.GetOpentime().Unix()
|
||||
list.Hid = 0 // 重置活动id
|
||||
list.Etime = 0
|
||||
for _, v := range szConf {
|
||||
if curTime >= int64(v.Openday)+openTime && curTime <= int64(v.Endday)+openTime {
|
||||
list.Hid = v.Endday
|
||||
list.Etime = int64(v.Endday) + openTime
|
||||
break
|
||||
}
|
||||
//if curTime >= int64(v.Openday)+openTime && curTime <= int64(v.Endday)+openTime { // 暂时不校验天数
|
||||
list.Hid = v.Endday
|
||||
list.Etime = int64(v.Endday) + curTime
|
||||
break
|
||||
//}
|
||||
}
|
||||
|
||||
var conf *cfg.GameIntegralBossData
|
||||
|
Loading…
Reference in New Issue
Block a user