ziwen 1 年之前
父节点
当前提交
88de0b0ab1
共有 1 个文件被更改,包括 9 次插入10 次删除
  1. 9 10
      controllers/home.go

+ 9 - 10
controllers/home.go

@@ -659,7 +659,7 @@ func (this *HomeController) NewList() {
 	}
 	pageSize, _ := this.GetInt("PageSize")
 	currentIndex, _ := this.GetInt("CurrentIndex")
-	tagId, _ := this.GetInt("TagId")
+	//tagId, _ := this.GetInt("TagId")
 
 	var startSize int
 	if pageSize <= 0 {
@@ -682,15 +682,14 @@ func (this *HomeController) NewList() {
 		br.ErrMsg = "GetCountCompanyProductCompanyId,Err:" + err.Error()
 		return
 	}
-	if tagId > 0 {
-		tagInfo, err := models.GetCygxTagByTagId(tagId)
-		if err != nil && err.Error() != utils.ErrNoRow() {
-			br.Msg = "获取失败"
-			br.ErrMsg = "GetCygxTagByTagId,Err:" + err.Error()
-			return
-		}
-
-	}
+	//if tagId > 0 {
+	//	tagInfo, err := models.GetCygxTagByTagId(tagId)
+	//	if err != nil && err.Error() != utils.ErrNoRow() {
+	//		br.Msg = "获取失败"
+	//		br.ErrMsg = "GetCygxTagByTagId,Err:" + err.Error()
+	//		return
+	//	}
+	//}
 	//condition += " AND source = 'article' "
 	//查询近一个月的数据
 	conditionInit = " AND publish_date  >   '" + time.Now().AddDate(0, 0, -30).Format(utils.FormatDateTime) + "'"