fix quality obj matching

This commit is contained in:
shoopea 2019-12-13 20:11:40 +08:00
parent 1a8ec40b34
commit 9afb5345ac

2
obj.go
View File

@ -735,7 +735,7 @@ func getSilentObjItemID(code string, name string) int64 {
//log.Printf("Matching item name %s with %s.\n", name, obj.Name)
return obj.ObjID64
}
if ok, _ := regexp.MatchString(`^a[0-9]+[a-e])$`, code); ok {
if ok, _ := regexp.MatchString(`^a[0-9]+[a-e]$`, code); ok {
code2 := code[:len(code)-1]
log.Printf("Matching quality item code %s with %s.\n", code, code2)
if obj, ok := cacheObjItem[code2]; ok {