test
This commit is contained in:
parent
12f793b59e
commit
ddae708ac1
2
obj.go
2
obj.go
@ -631,7 +631,7 @@ func silentGetObjItemID(code string, name string) int64 {
|
|||||||
if len(code) > 0 {
|
if len(code) > 0 {
|
||||||
if v, ok := cacheObjItem.Load(code); ok {
|
if v, ok := cacheObjItem.Load(code); ok {
|
||||||
item := v.(ChatWarsItem)
|
item := v.(ChatWarsItem)
|
||||||
log.Printf("Matching item code %s with %s.\n", code, item.Code)
|
//log.Printf("Matching item code %s with %s.\n", code, item.Code)
|
||||||
return item.ObjID64
|
return item.ObjID64
|
||||||
}
|
}
|
||||||
if ok, _ := regexp.MatchString(`^u[0-9]+`, code); !ok {
|
if ok, _ := regexp.MatchString(`^u[0-9]+`, code); !ok {
|
||||||
|
Loading…
Reference in New Issue
Block a user