Ver Fonte

feat:xiugai

wangchuanjin há 3 meses atrás
pai
commit
18e0dd8983
1 ficheiros alterados com 2 adições e 3 exclusões
  1. 2 3
      p/public.go

+ 2 - 3
p/public.go

@@ -304,9 +304,8 @@ func LoadBidding(mgo *MongodbSim, dbName, coll, incField string, startTime, maxS
 	if util.IntAll(queryField["detail"]) > 0 {
 		for _, temp := range res {
 			_id := ObjToString(temp["_id"])
-			if ossAddr != "" {
-				repl, err := client.GetBidDetailByRpc(ossAddr, &entity.Args{"detail", _id})
-				if err != nil {
+			if util.ObjToString(temp["detail"]) == "" && ossAddr != "" {
+				if repl, err := client.GetBidDetailByRpc(ossAddr, &entity.Args{"detail", _id}); err != nil {
 					temp["detail"] = repl.Data
 				}
 			}