Răsfoiți Sursa

fix:首页行业报告修改

duxin 1 an în urmă
părinte
comite
20e96e330a
2 a modificat fișierele cu 9 adăugiri și 7 ștergeri
  1. 5 5
      src/jfw/front/hybg.go
  2. 4 2
      src/phoneFilter.json

+ 5 - 5
src/jfw/front/hybg.go

@@ -50,11 +50,11 @@ var (
 func (l *DeskAnalysisReport) ImportantNews() {
 	defer qutil.Catch()
 	rData := func() interface{} {
-		//res := redis.Get("limitation", "important_news")
-		//if res != nil {
-		//	resData, _ := res.([]interface{})
-		//	return qutil.ObjArrToMapArr(resData)
-		//}
+		res := redis.Get("limitation", "important_news")
+		if res != nil {
+			resData, _ := res.([]interface{})
+			return qutil.ObjArrToMapArr(resData)
+		}
 		columnCode, _ := config.Sysconfig["columnCode"].(map[string]interface{})
 		queryMap := map[string]interface{}{"s_contenttype": qutil.InterfaceToStr(columnCode["招投标攻略"]), "s_secondclassifytype": "zbjq", "i_status": 1, "releasetime": map[string]interface{}{"$lt": time.Now().Unix()}}
 		data, _ := mongodb.Find("content", queryMap, `{"releasetime":-1}`, `{"_id":1,"s_title":1,"releasetime":1,"l_createdate":1}`, false, 0, 10)

+ 4 - 2
src/phoneFilter.json

@@ -24,8 +24,10 @@
     "^/swordfish/SingleLogin",
     "^/weixin/frontPage/bigmember/free/perfect_info_*",
     "^/orgstructure/invaction/(.*)",
-    "^/active/transit/(.*)"
-	],
+    "^/active/transit/(.*)",
+    "^/front/project/deskAnalysisReport",
+    "^/front/project/importantNews"
+  ],
 	"sessUrl":{
 		"/jyTreasureBox/treasureBox":"",
 		"/swordfish/newhistorypush":"/swordfish/newhistorypush",