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