@@ -477,10 +477,10 @@ func (this *Tags) GetNewBidInfo() (list []map[string]interface{}) {
)
_, _, lists := bidsearch.GetPcBidSearchData("", "", "", publishTime, "招标预告,招标公告,招标结果,招标信用信息", "", "", "", "", "", "", "", "", 1, false, nil, bidSearch_field_1, "", false, false, "", 50, "")
if lists != nil && len(*lists) > 0 {
- for k, v := range *lists {
- if k >= 10 {
- break
- }
+ if len(*lists) > 10 {
+ *lists = (*lists)[:10]
+ }
+ for _, v := range *lists {
v["_id"] = encrypt.CommonEncodeArticle("content", v["_id"].(string))
delete(v, "toptype")
delete(v, "s_subscopeclass")