|
@@ -376,8 +376,8 @@ func (n *Newscont) GetExpressList(list /*分类*/, param /*参数*/ string) erro
|
|
|
|
|
|
log.Println("querymap:", querymap)
|
|
|
//查询生成列表数据
|
|
|
- if list == "qykb" {
|
|
|
- hotnews := elastic.GetPage("content", "content", `{"s_contenttype": "qykb"}`, `{"praise":-1}`, `{"_id":1,"s_title":1,"praise":1}`, 0, 10)
|
|
|
+ if list == "qykb" || list == "zhsk" {
|
|
|
+ hotnews := elastic.GetPage("content", "content", `{"s_contenttype": "`+list+`"}`, `{"praise":-1}`, `{"_id":1,"s_title":1,"praise":1}`, 0, 10)
|
|
|
data, pagination := searhWebContent(querymap)
|
|
|
n.Render("/manage/web_newexpresslist.html", &xweb.T{"querymap": querymap, "data": data, "pagination": pagination, "hotnews": hotnews})
|
|
|
} else if list == "zcfg" {
|
|
@@ -390,8 +390,8 @@ func (n *Newscont) GetExpressList(list /*分类*/, param /*参数*/ string) erro
|
|
|
bs, _ := base64.StdEncoding.DecodeString(paramstr)
|
|
|
querymap := map[string]string{}
|
|
|
json.Unmarshal(bs, &querymap)
|
|
|
- if list == "qykb" {
|
|
|
- hotnews := elastic.GetPage("content", "content", `{"s_contenttype": "qykb"}`, `{"praise":-1}`, `{"_id":1,"s_title":1,"praise":1}`, 0, 10)
|
|
|
+ if list == "qykb" || list == "zhsk" {
|
|
|
+ hotnews := elastic.GetPage("content", "content", `{"s_contenttype": "`+list+`"}`, `{"praise":-1}`, `{"_id":1,"s_title":1,"praise":1}`, 0, 10)
|
|
|
data, pagination := searhWebContent(querymap)
|
|
|
n.Render("/manage/web_newexpresslist.html", &xweb.T{"querymap": querymap, "data": data, "pagination": pagination, "hotnews": hotnews})
|
|
|
} else if list == "zcfg" {
|