Merge branch 'dev_newTimeitem' into develop

This commit is contained in:
kxdd 2024-05-13 11:02:40 +08:00
commit 052cfc1fe1
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 {
if this.ItemRecExpireTime >= time.Now().Unix() {
this.ItemRecExpireTime += int64(itemData.Time) * 3600 * num
} else {
this.ItemRecExpireTime = time.Now().Unix() + int64(itemData.Time)*3600*num
}
}
}