فهرست منبع

Merge branch 'dev/v4.8.38_zxl' of qmx/jy into feature/v4.8.38

zhangxinlei1996 2 سال پیش
والد
کامیت
d5e57c43ff
1فایلهای تغییر یافته به همراه8 افزوده شده و 0 حذف شده
  1. 8 0
      src/jfw/front/tags.go

+ 8 - 0
src/jfw/front/tags.go

@@ -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]