Compare commits
2 Commits
384f8b5b9c
...
052cfc1fe1
Author | SHA1 | Date |
---|---|---|
|
052cfc1fe1 | |
|
a017518652 |
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue