|
@@ -850,6 +850,7 @@ func AnalysisSaveResult(j *ju.Job, e *ExtractTask) {
|
|
|
}
|
|
|
|
|
|
func (e *ExtractTask) QualityAudit(resulttmp map[string]interface{}) {
|
|
|
+ defer qu.Catch()
|
|
|
//获取审核字段
|
|
|
for _, field := range e.AuditFields {
|
|
|
//1.分包
|
|
@@ -888,6 +889,7 @@ func (e *ExtractTask) QualityAudit(resulttmp map[string]interface{}) {
|
|
|
|
|
|
//Redis匹配
|
|
|
func (e *ExtractTask) RedisMatch(field, fv string, val map[string]interface{}) {
|
|
|
+ defer qu.Catch()
|
|
|
i := redis.GetInt(field, field+"_"+fv) //查找redis
|
|
|
if i == 0 { //reids未找到,执行规则匹配
|
|
|
val[field+"_isredis"] = false
|
|
@@ -899,6 +901,7 @@ func (e *ExtractTask) RedisMatch(field, fv string, val map[string]interface{}) {
|
|
|
|
|
|
//规则匹配
|
|
|
func (e *ExtractTask) RuleMatch(field, fieldval string, tmpMap map[string]interface{}) {
|
|
|
+ defer qu.Catch()
|
|
|
if fieldval != "" {
|
|
|
SMap := e.StartMatch(field, fieldval)
|
|
|
//SMap.AddKey(field+"_isaudit", false)
|
|
@@ -911,6 +914,7 @@ func (e *ExtractTask) RuleMatch(field, fieldval string, tmpMap map[string]interf
|
|
|
|
|
|
//开始规则匹配
|
|
|
func (e *ExtractTask) StartMatch(field, text string) *pretreated.SortMap {
|
|
|
+ defer qu.Catch()
|
|
|
SMap := pretreated.NewSortMap()
|
|
|
lock.Lock()
|
|
|
f := e.RecogFieldMap[field]
|