Browse Source

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

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

+ 1 - 1
controllers/report.go

@@ -1150,7 +1150,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

@@ -1228,6 +1228,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

+ 4 - 3
models/report.go

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

+ 4 - 0
utils/constants.go

@@ -78,3 +78,7 @@ const (
 	C_CLASS_ACTIVITY_TYPE_ID         = 7 //C类电话会会议ID
 	ANALYST_TELL_ACTIVITY_TYPE_ID    = 2 //分析师电话会ID
 )
+
+const (
+	LINK_WX_EXPLAIN = "https://mp.weixin.qq.com/s?__biz=Mzg2OTYzODk0Nw==&mid=2247483662&idx=1&sn=3752df99025189b9d77fe658bfc0edbd&chksm=ce98b742f9ef3e54b49986e647dd951a3aad74f323174b252174e0938c264c0562c8ec455106#rd" //用户阅读数据
+)