This commit is contained in:
shoopea 2019-05-25 16:06:33 +08:00
parent 833fe0072c
commit 79badebec8

4
obj.go
View File

@ -170,7 +170,7 @@ func loadObjCastle() error {
cacheObjCastle = make(map[string]ChatWarsCastle)
castles, err := db.Query(`SELECT oc.obj_id, oc.logo, oc.name FROM obj_castle oc ORDER BY oc.id DESC;`)
castles, err := db.Query(`SELECT oc.obj_id, oc.logo, oc.name FROM obj_castle oc;`)
if err != nil {
return err
}
@ -261,7 +261,7 @@ func loadObjGuild() error {
cacheObjGuild = make(map[string]ChatWarsGuild)
guilds, err := db.Query(`SELECT og.obj_id, og.tag, og.name FROM obj_guild og ORDER BY oc.id DESC;`)
guilds, err := db.Query(`SELECT og.obj_id, og.tag, og.name FROM obj_guild og;`)
if err != nil {
return err
}