Browse Source

更换正式测试appid

xingzai 3 years ago
parent
commit
0808f94879
4 changed files with 10 additions and 4 deletions
  1. 2 0
      .gitignore
  2. 1 1
      go.mod
  3. 6 0
      utils/config.go
  4. 1 3
      utils/constants.go

+ 2 - 0
.gitignore

@@ -6,3 +6,5 @@
 .DS_Store
 /conf
 /tests
+/go.mod
+/go.sum

+ 1 - 1
go.mod

@@ -16,4 +16,4 @@ require (
 	rdluck_tools v0.0.0
 )
 
-replace rdluck_tools => /home/code/go/src/rdluck_tools
+replace rdluck_tools => /Users/zcx/go/src/hongze/rdluck_tools

+ 6 - 0
utils/config.go

@@ -29,6 +29,8 @@ var (
 	AccessKeyId       string = "LTAIFMZYQhS2BTvW"
 	AccessKeySecret   string = "12kk1ptCHoGWedhBnKRVW5hRJzq9Fq"
 	ResearchReportUrl        = "" //全局加密KEY
+	ReportAppid       string
+	ReportSecret      string
 )
 
 func init() {
@@ -79,9 +81,13 @@ func init() {
 		logDir := `/data/rdlucklog/hongze_open_api`
 		ApiLog = log.Init("20060102.api", logDir)
 		ResearchReportUrl = "http://8.136.199.33:8608/api/"
+		ReportAppid = "CQWx3EqDLNk7bVHo"                  //Appid
+		ReportSecret = "vRVFCk182Hpv8CyrHsxaHhA3CgGhh4Uu" //AppSecret
 	} else {
 		ApiLog = log.Init("20060102.api")
 		ResearchReportUrl = "http://8.136.199.33:8608/api/"
+		ReportAppid = "VH2ou4EKlYZz58Uj"                  //Appid
+		ReportSecret = "vRVFCk182Hpv8CyrHsxaHhA3CgGhh4Uu" //AppSecret
 	}
 }
 

+ 1 - 3
utils/constants.go

@@ -93,7 +93,5 @@ var PermissionFiccClassifyArr = [...]string{"宏观经济", "化工产业", "黑
 var PermissionAllClassifyArr = [...]string{"宏观经济", "化工产业", "黑色产业", "有色产业", "权益"}
 
 const (
-	key          = "zDeESsxsXuionhqSLZYHWcDJ"         //全局加密KEY
-	ReportAppid  = "CQWx3EqDLNk7bVHo"                 //Appid
-	ReportSecret = "vRVFCk182Hpv8CyrHsxaHhA3CgGhh4Uu" //AppSecret
+	key = "zDeESsxsXuionhqSLZYHWcDJ" //全局加密KEY
 )