1
This commit is contained in:
parent
9baddab371
commit
aaf9f70ab5
@ -20,7 +20,7 @@ func (this *buff) List(accountId string) (error, []*model.Buff) {
|
||||
nowTime := f5.GetApp().GetRealSeconds()
|
||||
buffs := []*model.Buff{}
|
||||
result := f5.GetApp().GetOrmDb(constant.WHEEL_DB).Table(new(model.Buff).TableName()).Where(
|
||||
"account_id = ? AND expiretime > ?", accountId, nowTime).Find(&buffs)
|
||||
"account_id = ? AND expires_time > ?", accountId, nowTime).Find(&buffs)
|
||||
return result.Error, buffs
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user