Compare commits
No commits in common. "052cfc1fe1bb0dbf4b2daedb079abc8e27504579" and "384f8b5b9c4da196ff71e6fb1b1cf1561e4f2c24" have entirely different histories.
052cfc1fe1
...
384f8b5b9c
|
@ -4653,11 +4653,7 @@ func (this *Player) AddItemRecExpireTime(itemId int32, num, add int64, gainWay i
|
||||||
if this.ItemRecExpireTime == 0 {
|
if this.ItemRecExpireTime == 0 {
|
||||||
this.ItemRecExpireTime = time.Now().Unix() + int64(itemData.Time)*3600*num
|
this.ItemRecExpireTime = time.Now().Unix() + int64(itemData.Time)*3600*num
|
||||||
} else {
|
} else {
|
||||||
if this.ItemRecExpireTime >= time.Now().Unix() {
|
this.ItemRecExpireTime += int64(itemData.Time) * 3600 * num
|
||||||
this.ItemRecExpireTime += int64(itemData.Time) * 3600 * num
|
|
||||||
} else {
|
|
||||||
this.ItemRecExpireTime = time.Now().Unix() + int64(itemData.Time)*3600*num
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue