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