Explorar el Código

feat:加日志

fuwencai hace 1 año
padre
commit
c36faa4bf6
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      jyBXBuyer/rpc/model/buyerListBYEs.go

+ 2 - 1
jyBXBuyer/rpc/model/buyerListBYEs.go

@@ -734,6 +734,7 @@ func IsFollowd(buyerNames []string, userId string) (isFws map[string]bool) {
 			"$in": buyerNames,
 		},
 	}
+	log.Println("IsFollowd query:", fc, queryMap)
 	list, ok := IC.Mgo.Find(fc, queryMap, `{"_id":1}`, nil, false, -1, -1)
 	if ok && len(*list) > 0 {
 		isFws = map[string]bool{}
@@ -743,7 +744,7 @@ func IsFollowd(buyerNames []string, userId string) (isFws map[string]bool) {
 			}
 		}
 	} else {
-		logx.Info("采购单位是否已关注信息异常  or  未查到数据")
+		logx.Info("采购单位是否已关注信息异常  or  未查到数据", ok)
 	}
 	return
 }