1
This commit is contained in:
parent
9fa67d7092
commit
ffabf29e39
@ -54,3 +54,7 @@ func (this *Buff) FindByBuffId(accountId string, buffId int32) (error, bool) {
|
||||
return nil, result.RowsAffected > 0
|
||||
}
|
||||
}
|
||||
|
||||
func (this *Buff) UpdateExpireTime() error {
|
||||
return this.UpdateFields([]string{"expires_time", "modifytime"})
|
||||
}
|
||||
|
@ -51,6 +51,8 @@ func (this *buff) Add(accountId string, buffList []int32) {
|
||||
} else {
|
||||
buffModel.ExpiresTime += buffMeta.GetDurationTime()
|
||||
}
|
||||
buffModel.ModifyTime = nowTime
|
||||
buffModel.UpdateExpireTime()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user