年兽活动时区修改
This commit is contained in:
parent
7aee41e78a
commit
768dd92e2d
|
@ -959,7 +959,6 @@ func (r *RankMatchMgr) NianRankAward() {
|
||||||
endTimestamp := end.Unix()*/
|
endTimestamp := end.Unix()*/
|
||||||
timestamp := common.StrTimeToTs(startTime)
|
timestamp := common.StrTimeToTs(startTime)
|
||||||
endTimestamp := common.StrTimeToTs(endTime)
|
endTimestamp := common.StrTimeToTs(endTime)
|
||||||
end, _ := time.Parse(time.DateTime, endTime)
|
|
||||||
nowTime := time.Now().Unix()
|
nowTime := time.Now().Unix()
|
||||||
if nowTime < timestamp || nowTime-86400 > endTimestamp {
|
if nowTime < timestamp || nowTime-86400 > endTimestamp {
|
||||||
return
|
return
|
||||||
|
@ -1057,7 +1056,8 @@ func (r *RankMatchMgr) NianRankAward() {
|
||||||
})).StartByExecutor("NianLuck_Award")
|
})).StartByExecutor("NianLuck_Award")
|
||||||
} else if info.TypeId == 2 {
|
} else if info.TypeId == 2 {
|
||||||
yesterday := time.Unix(time.Now().Unix()-86400, 0)
|
yesterday := time.Unix(time.Now().Unix()-86400, 0)
|
||||||
if yesterday.Day() != end.Day() {
|
endDay := time.Unix(endTimestamp, 0)
|
||||||
|
if yesterday.Day() != endDay.Day() {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
rankAward := info.RankInfo
|
rankAward := info.RankInfo
|
||||||
|
|
Loading…
Reference in New Issue