Browse Source

更换生产环境易董加密的盐

xingzai 2 years ago
parent
commit
01c2eb1501
2 changed files with 4 additions and 4 deletions
  1. 1 4
      services/yidong/yidong.go
  2. 3 0
      utils/config.go

+ 1 - 4
services/yidong/yidong.go

@@ -8,12 +8,9 @@ import (
 	"strings"
 )
 
-// 弘则易董的回调签名秘钥
-const YIDONG_HONGZE_KEY = "YIDONG20220816QxbNHiYNnnhT"
-
 // GetSign 获取签名
 func GetSign(signStr string) string {
-	signStr += YIDONG_HONGZE_KEY
+	signStr += utils.YIDONG_HONGZE_KEY
 	fmt.Print(signStr)
 	return strings.ToUpper(utils.MD5(signStr))
 }

+ 3 - 0
utils/config.go

@@ -32,6 +32,7 @@ var (
 	NewResearchReportUrl        = "" //新版报告的跳转地址
 	ReportAppid          string
 	ReportSecret         string
+	YIDONG_HONGZE_KEY    string //易董加密的盐值
 )
 
 //全时会议账号信息
@@ -93,12 +94,14 @@ func init() {
 		NewResearchReportUrl = "https://details.hzinsights.com/"
 		ReportAppid = "CQWx3EqDLNk7bVHo"                  //Appid
 		ReportSecret = "vRVFCk182Hpv8CyrHsxaHhA3CgGhh4Uu" //AppSecret
+		YIDONG_HONGZE_KEY = "YIDONG20220816VshIcFonYccA"  //易董加密的盐值
 	} else {
 		ApiLog = log.Init("20060102.api")
 		ResearchReportUrl = "http://advisoryadmin.brilliantstart.cn/xcx_h5/"
 		NewResearchReportUrl = "http://xcxh5test.hzinsights.com/xcx_h5/"
 		ReportAppid = "VH2ou4EKlYZz58Uj"                  //Appid
 		ReportSecret = "Q6Y5vwmx1IAA9OPkobl8qWvrnV7dGJ4k" //AppSecret
+		YIDONG_HONGZE_KEY = "YIDONG20220816QxbNHiYNnnhT"  //易董加密的盐值
 	}
 
 	//初始化系统用户角色map集合