Browse Source

no message

xingzai 1 năm trước cách đây
mục cha
commit
4065baf204
1 tập tin đã thay đổi với 6 bổ sung1 xóa
  1. 6 1
      controllers/article.go

+ 6 - 1
controllers/article.go

@@ -186,7 +186,12 @@ func (this *ArticleController) Detail() {
 			} else {
 				articlePermissionName = detail.CategoryName
 			}
-			detail.ChartPermissionName = articlePermissionName
+			if resp.IsResearch {
+				detail.ChartPermissionName = utils.MAI_FANG_YAN_XUAN_NAME
+			} else {
+				detail.ChartPermissionName = articlePermissionName
+			}
+
 			var hasPersion bool
 			slice := strings.Split(articlePermissionName, ",")
 			for _, v := range slice {