Kaynağa Gözat

feat:加日志

fuwencai 1 yıl önce
ebeveyn
işleme
c36faa4bf6
1 değiştirilmiş dosya ile 2 ekleme ve 1 silme
  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
 }