---
panlei
2019-07-29 d9499d682909977bc2b4c2783c4d07d397713968
---
1个文件已修改
7 ■■■■ 已修改文件
ruleserver/readyDataForRule.go 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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)