|
@@ -677,6 +677,14 @@ func (this *Tags) GetBidding(industry, area, city, stype, keyword string, reques
|
|
for _, v := range *datas {
|
|
for _, v := range *datas {
|
|
v["_id"] = encrypt.CommonEncodeArticle("content", qu.ObjToString(v["_id"]))
|
|
v["_id"] = encrypt.CommonEncodeArticle("content", qu.ObjToString(v["_id"]))
|
|
v["date"] = time.Unix(qu.Int64All(v["publishtime"]), 0).Format(date.Date_Short_Layout)
|
|
v["date"] = time.Unix(qu.Int64All(v["publishtime"]), 0).Format(date.Date_Short_Layout)
|
|
|
|
+ highlight, _ := v["highlight"].(map[string][]string)
|
|
|
|
+ detail := ""
|
|
|
|
+ for _, val := range highlight["detail"] {
|
|
|
|
+ detail += public.ClearHtml.ReplaceAllString(val, "")
|
|
|
|
+ }
|
|
|
|
+ if detail != "" {
|
|
|
|
+ v["detail"] = detail
|
|
|
|
+ }
|
|
}
|
|
}
|
|
if strings.Contains(industry, "_") {
|
|
if strings.Contains(industry, "_") {
|
|
industry = strings.Split(industry, "_")[0]
|
|
industry = strings.Split(industry, "_")[0]
|