This commit is contained in:
yangduo 2024-12-12 10:36:57 +08:00
parent 9baddab371
commit aaf9f70ab5

View File

@ -20,7 +20,7 @@ func (this *buff) List(accountId string) (error, []*model.Buff) {
nowTime := f5.GetApp().GetRealSeconds() nowTime := f5.GetApp().GetRealSeconds()
buffs := []*model.Buff{} buffs := []*model.Buff{}
result := f5.GetApp().GetOrmDb(constant.WHEEL_DB).Table(new(model.Buff).TableName()).Where( 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 return result.Error, buffs
} }