@@ -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