This commit is contained in:
shoopea 2019-06-25 18:26:09 +08:00
parent 9e524a5286
commit 931f623e8b

2
obj.go
View File

@ -641,7 +641,7 @@ func silentGetObjItemID(code string, name string) int64 {
} }
if v, ok := cacheObjItem.Load(name); ok { if v, ok := cacheObjItem.Load(name); ok {
item := v.(ChatWarsItem) item := v.(ChatWarsItem)
log.Printf("Matching item name %s with %s.\n", name, item.Name) //log.Printf("Matching item name %s with %s.\n", name, item.Name)
return item.ObjID64 return item.ObjID64
} }
if ok, _ := regexp.MatchString(`^((u|e)[0-9]+|(a|w)[0-9]+[a-e]{0,1})$`, code); ok || len(code) == 0 { if ok, _ := regexp.MatchString(`^((u|e)[0-9]+|(a|w)[0-9]+[a-e]{0,1})$`, code); ok || len(code) == 0 {