阵营每日通关数据重置
This commit is contained in:
parent
81f2b568ef
commit
b5c8b5aa16
@ -33,7 +33,7 @@ func (this *apiComp) GetRace(session comm.IUserSession, req *pb.PagodaGetRaceReq
|
|||||||
// 初始化每天挑战塔的层数
|
// 初始化每天挑战塔的层数
|
||||||
for k, v := range list.Race {
|
for k, v := range list.Race {
|
||||||
if k > 0 {
|
if k > 0 {
|
||||||
if utils.IsToday(v.Rtime) {
|
if !utils.IsToday(v.Rtime) {
|
||||||
list.Race[k].Rtime = configure.Now().Unix()
|
list.Race[k].Rtime = configure.Now().Unix()
|
||||||
list.Race[k].Defeat = 0
|
list.Race[k].Defeat = 0
|
||||||
bChange = true
|
bChange = true
|
||||||
|
Loading…
Reference in New Issue
Block a user