panlei
2019-09-10 855f98dfa80b180bdbade05b30ad2f3e89f4c543
ruleserver/readyDataForRule.go
@@ -169,18 +169,20 @@
// 给目标填充liker
func (arg *Arg) fillLiker(tableId []string, compareThreshold float32) {
   //bytes := bigCache.GetComparePersonBaseInfo(tableId, arg.Feature, compareThreshold)
   comArg := &protomsg.CompareArgs{
      TableIds:tableId,
      FaceFeature:arg.Feature,
      CompareThreshold:compareThreshold,
      Source:false,
   }
   serverIp, _ := GetLocalIP()
   bytes := Push("tcp://"+serverIp+":4010",comArg,sock)
   //comArg := &protomsg.CompareArgs{
   //   TableIds:tableId,
   //   FaceFeature:arg.Feature,
   //   CompareThreshold:compareThreshold,
   //   Source:false,
   //}
   //serverIp, _ := GetLocalIP()
   //bytes := Push("tcp://"+serverIp+":4010",comArg,sock)
   bytes := []byte{}
   var scResult protomsg.SdkCompareResult
   err1 := proto.Unmarshal(bytes, &scResult)
   if err1 != nil {
      logger.Error("getBaseInfo解压错误", err1)
      return
   }
   //logger.Info("----------------------------------------map是", m)
   ids := []string{}