Browse Source

添加关注微信公众号链接说明地址

xingzai 2 years ago
parent
commit
47db5f915d
4 changed files with 11 additions and 5 deletions
  1. 1 1
      controllers/report.go
  2. 1 0
      controllers/user.go
  3. 5 4
      models/report.go
  4. 4 0
      utils/constants.go

+ 1 - 1
controllers/report.go

@@ -1151,7 +1151,7 @@ func (this *ReportController) IsShow() {
 	if total > 0 {
 		resp.IsShow = true
 	}
-
+	resp.LinkWxExplain = utils.LINK_WX_EXPLAIN
 	br.Ret = 200
 	br.Success = true
 	br.Data = resp

+ 1 - 0
controllers/user.go

@@ -1232,6 +1232,7 @@ func (this *UserController) ShareIsShow() {
 	if user.CompanyId != 16 && detail.ConfigValue == "1" {
 		resp.IsShow = true
 	}
+	resp.LinkWxExplain = utils.LINK_WX_EXPLAIN
 	br.Ret = 200
 	br.Success = true
 	br.Data = resp

+ 5 - 4
models/report.go

@@ -203,10 +203,11 @@ func GetWhichDepartmentCount(condition string) (count int, err error) {
 }
 
 type IsShow struct {
-	IsShow         bool `description:"是否展示"`
-	IsShowResearch bool `description:"研选是否展示限免"`
-	IsShowChart    bool `description:"图表是否展示限免"`
-	IsShowList     bool `description:"榜单是否展示"`
+	IsShow         bool   `description:"是否展示"`
+	IsShowResearch bool   `description:"研选是否展示限免"`
+	IsShowChart    bool   `description:"图表是否展示限免"`
+	IsShowList     bool   `description:"榜单是否展示"`
+	LinkWxExplain  string `description:"关注微信公众号链接说明地址"`
 }
 
 //获取用户是否有查看权限

+ 4 - 0
utils/constants.go

@@ -92,3 +92,7 @@ const (
 const (
 	CHART_INFO_HTTP_URL = "https://vmp.hzinsights.com/v2/charts/"
 )
+
+const (
+	LINK_WX_EXPLAIN = "https://mp.weixin.qq.com/s?__biz=Mzg2OTYzODk0Nw==&mid=2247483662&idx=1&sn=3752df99025189b9d77fe658bfc0edbd&chksm=ce98b742f9ef3e54b49986e647dd951a3aad74f323174b252174e0938c264c0562c8ec455106#rd" //用户阅读数据
+)