Przeglądaj źródła

Merge branch 'cygx_need_p2-887' of http://8.136.199.33:3000/hongze/hongze_cygx into debug

xingzai 1 rok temu
rodzic
commit
f3e4dbf8d7
2 zmienionych plików z 6 dodań i 2 usunięć
  1. 5 1
      controllers/tag.go
  2. 1 1
      services/article.go

+ 5 - 1
controllers/tag.go

@@ -4,6 +4,7 @@ import (
 	"encoding/json"
 	"hongze/hongze_cygx/models"
 	"hongze/hongze_cygx/services"
+	"hongze/hongze_cygx/utils"
 )
 
 type TagController struct {
@@ -79,7 +80,10 @@ func (this *TagController) TagCustomizeList() {
 		br.ErrMsg = "获取品种信息失败,Err:" + err.Error()
 		return
 	}
-
+	item := new(models.ChartPermission)
+	item.ChartPermissionId = utils.GU_SHOU_ID
+	item.PermissionName = utils.GU_SHOU_NAME
+	listPermission = append(listPermission, item)
 	resp := new(models.CygxTagListResp)
 
 	resp.List = list

+ 1 - 1
services/article.go

@@ -1185,7 +1185,7 @@ func HandleArticleListByApi(artcleId int) (err error) {
 	}
 	go models.UpdateCygxArticleCeluePush(artcleId)
 	AddComprehensiveArticle(artcleId)                // 同步到综合页面的搜索引擎
-	AddComprehensiveIndustrialSource("Yx", artcleId) // 同步到综合页面的搜索引擎(添加产业资源包)
+	AddComprehensiveIndustrialSource("Hz", artcleId) // 同步到综合页面的搜索引擎(添加产业资源包)
 	GetSummarytoEs(artcleId)                         // 同步到ES搜索引擎
 	GetIndustrialManagementArticleNewPublishData()
 	if len(listArticleData) > 0 {