|
@@ -56,7 +56,9 @@ func StartExtractTestTask(taskId, startId, num, resultcoll, trackcoll string) bo
|
|
|
ext.InitAuditRecogField()
|
|
|
|
|
|
//品牌抽取是否开启
|
|
|
- ju.IsBrandGoods = ju.Config["brandgoods"].(bool)
|
|
|
+ if ju.Config["brandgoods"] != nil {
|
|
|
+ ju.IsBrandGoods = ju.Config["brandgoods"].(bool)
|
|
|
+ }
|
|
|
return RunExtractTestTask(ext, startId, num)
|
|
|
}
|
|
|
|
|
@@ -120,7 +122,9 @@ func StartExtractTaskId(taskId string) bool {
|
|
|
ext.InitAuditRecogField()
|
|
|
|
|
|
//品牌抽取是否开启
|
|
|
- ju.IsBrandGoods = ju.Config["brandgoods"].(bool)
|
|
|
+ if ju.Config["brandgoods"] != nil {
|
|
|
+ ju.IsBrandGoods = ju.Config["brandgoods"].(bool)
|
|
|
+ }
|
|
|
|
|
|
ext.IsRun = true
|
|
|
go ext.ResultSave()
|