From d9499d682909977bc2b4c2783c4d07d397713968 Mon Sep 17 00:00:00 2001
From: panlei <2799247126@qq.com>
Date: 星期一, 29 七月 2019 17:22:11 +0800
Subject: [PATCH] ---
---
ruleserver/readyDataForRule.go | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/ruleserver/readyDataForRule.go b/ruleserver/readyDataForRule.go
index f74dd04..f750496 100644
--- a/ruleserver/readyDataForRule.go
+++ b/ruleserver/readyDataForRule.go
@@ -1,14 +1,13 @@
package ruleserver
import (
- "basic.com/pubsub/cache.git/esutil"
bigCache "basic.com/pubsub/cache.git"
+ "basic.com/pubsub/cache.git/esutil"
"basic.com/pubsub/protomsg.git"
"encoding/json"
"fmt"
"github.com/go-yaml/yaml"
"io/ioutil"
- "os"
"ruleprocess/cache"
"ruleprocess/logger"
"strconv"
@@ -175,9 +174,7 @@
if err != nil || len(table) == 0{
logger.Error("鏍规嵁id鏌ヨ搴曞簱淇℃伅鍑洪敊锛�",err,"--杩斿洖鍊奸暱搴︿负锛�",len(table))
}
- logger.Warn("杩斿洖鐨勬瘮鍒�",m[baseinfo.Id])
- os.Exit(0)
- base := BaseInfo{TableId:baseinfo.TableId,TableName:table[0].TableName,BwType:table[0].BwType,CompareScore:Retain(m[baseinfo.Id]),PersonId:baseinfo.Id,PersonName:baseinfo.PersonName,PersonPicUrl:baseinfo.PersonPicUrl,PhoneNum:baseinfo.PhoneNum,Sex:baseinfo.Sex,IdCard:baseinfo.IdCard,MonitorLevel:baseinfo.MonitorLevel,Content:baseinfo.Reserved}
+ base := BaseInfo{TableId:baseinfo.TableId,TableName:table[0].TableName,BwType:table[0].BwType,CompareScore:Retain(m[baseinfo.Id])*100,PersonId:baseinfo.Id,PersonName:baseinfo.PersonName,PersonPicUrl:baseinfo.PersonPicUrl,PhoneNum:baseinfo.PhoneNum,Sex:baseinfo.Sex,IdCard:baseinfo.IdCard,MonitorLevel:baseinfo.MonitorLevel,Content:baseinfo.Reserved}
//logger.Debug("鐪嬬湅杩欎釜base鐨勫姣斿�兼槸澶氬皯锛�",base)
//os.Exit(1)
arg.Liker = append(arg.Liker, &base)
--
Gitblit v1.8.0