Compare commits

...

2 Commits

Author SHA1 Message Date
kxdd 052cfc1fe1 Merge branch 'dev_newTimeitem' into develop 2024-05-13 11:02:40 +08:00
kxdd a017518652 记牌器时间计算bug 2024-05-13 11:01:02 +08:00
1 changed files with 5 additions and 1 deletions

View File

@ -4653,7 +4653,11 @@ func (this *Player) AddItemRecExpireTime(itemId int32, num, add int64, gainWay i
if this.ItemRecExpireTime == 0 {
this.ItemRecExpireTime = time.Now().Unix() + int64(itemData.Time)*3600*num
} else {
this.ItemRecExpireTime += int64(itemData.Time) * 3600 * num
if this.ItemRecExpireTime >= time.Now().Unix() {
this.ItemRecExpireTime += int64(itemData.Time) * 3600 * num
} else {
this.ItemRecExpireTime = time.Now().Unix() + int64(itemData.Time)*3600*num
}
}
}