wangchuanjin 1 ヶ月 前
コミット
9af2387e8e
1 ファイル変更3 行追加1 行削除
  1. 3 1
      p/public.go

+ 3 - 1
p/public.go

@@ -305,8 +305,10 @@ func LoadBidding(mgo *MongodbSim, dbName, coll, incField string, startTime, maxS
 		for _, temp := range res {
 			_id := ObjToString(temp["_id"])
 			if util.ObjToString(temp["detail"]) == "" && ossAddr != "" {
-				if repl, err := ossClient.GetBidDetailByGrpc(ossAddr, &entity.Args{"detail", _id}); err != nil {
+				if repl, err := ossClient.GetBidDetailByGrpc(ossAddr, &entity.Args{"detail", _id}); err == nil {
 					temp["detail"] = repl.Data
+				} else {
+					logger.Error(_id, "获取正文出错", err)
 				}
 			}
 			if redisCache {