Эх сурвалжийг харах

Merge branch 'dev3.1.2' of http://192.168.3.207:10080/qmx/jy-data-extract into dev3.1.2

zhangjinkun 6 жил өмнө
parent
commit
b53a30c6c8

+ 6 - 2
src/jy/extract/extract.go

@@ -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()

+ 5 - 0
src/jy/extract/extractudp.go

@@ -104,6 +104,11 @@ func ExtractByUdp(sid, eid string, instanceId ...string) {
 	ext.InitAuditClass()
 	ext.InitAuditRecogField()
 
+	//品牌抽取是否开启
+	if ju.Config["brandgoods"] != nil {
+		ju.IsBrandGoods = ju.Config["brandgoods"].(bool)
+	}
+
 	go ext.ResultSave()
 	go ext.BidSave()
 	ext.IsRun = true