test
This commit is contained in:
parent
37c343a3f8
commit
cc6836854d
2
obj.go
2
obj.go
@ -721,6 +721,7 @@ func loadObjItem() error {
|
|||||||
c.Weight = weight
|
c.Weight = weight
|
||||||
cacheObjItem.Store(intl_id, *c)
|
cacheObjItem.Store(intl_id, *c)
|
||||||
cacheObjItem.Store(name, *c)
|
cacheObjItem.Store(name, *c)
|
||||||
|
log.Printf("loadObjItem[%d] : %s : `%s` : %s.\n", id, intl_id, name)
|
||||||
}
|
}
|
||||||
|
|
||||||
items2, err := db.Query(`SELECT oi.obj_id, oi.intl_id, obn.name, oi.weight FROM obj_item oi, obj_name obn WHERE obn.obj_id = oi.obj_id AND obn.priority > 0;`)
|
items2, err := db.Query(`SELECT oi.obj_id, oi.intl_id, obn.name, oi.weight FROM obj_item oi, obj_name obn WHERE obn.obj_id = oi.obj_id AND obn.priority > 0;`)
|
||||||
@ -742,6 +743,7 @@ func loadObjItem() error {
|
|||||||
c.Name = name
|
c.Name = name
|
||||||
c.Weight = weight
|
c.Weight = weight
|
||||||
cacheObjItem.Store(name, *c)
|
cacheObjItem.Store(name, *c)
|
||||||
|
log.Printf("loadObjItem[%d] : %s : `%s` : %s.\n", id, intl_id, name)
|
||||||
} else {
|
} else {
|
||||||
log.Printf("loadObjItem : orphaned obj_name for `%s` : %s.\n", intl_id, name)
|
log.Printf("loadObjItem : orphaned obj_name for `%s` : %s.\n", intl_id, name)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user