Explorar o código

测试更换访问路由

xingzai %!s(int64=3) %!d(string=hai) anos
pai
achega
7cb0dd9dc7
Modificáronse 2 ficheiros con 2 adicións e 17 borrados
  1. 1 16
      controllers/report.go
  2. 1 1
      utils/config.go

+ 1 - 16
controllers/report.go

@@ -112,21 +112,6 @@ func (c *ReportController) ListReport() {
 	c.OkDetailed(resp, "获取成功")
 }
 
-//func init() {
-//	var pwd = []byte("177777777")
-//	//services.Dojiami()
-//	result := utils.DesBase64Encrypt(pwd)
-//	fmt.Println(string(result))
-//	var dateTxt = []byte("YBOFDJRsCZgo4et+I98JaA==")
-//	resultDe := utils.DesBase64Decrypt(dateTxt)
-//	fmt.Println(string(resultDe))
-//	//fmt.Println(resultStr)
-//	//map[appid:XVuGlcyEEVNYVWx6 nonce_str:PsI0pAxDS4 research_report_id:1550 timestamp:1642522516]
-//	//map[appid:XVuGlcyEEVNYVWx6 mobile:Tl8zwzgQNbEYPUvXleA/XQ== nonce_str:PsI0pAxDS4 research_report_id:1550 sign:0FFE4F38D4394EA72A947A8ADDAD4996 timestamp:1642522516]
-//
-//	fmt.Println("加密解密")
-//}
-
 // @Title 获取报告详情
 // @Description 获取报告详情
 // @Param research_report_id query int true "报告ID"
@@ -189,7 +174,7 @@ func (c *ReportControllerCommon) GetReportInfo() {
 			postData["nonce_str"] = nonceStr
 			postData["timestamp"] = timeUnix
 			sign := utils.GetSign(postData)
-			reportInfo.ResearchReportTypeList[k].HttpUrl = utils.ResearchReportUrl + "report/getReportChapterInfo?" + parameter + "&sign=" + sign
+			reportInfo.ResearchReportTypeList[k].HttpUrl = utils.ResearchReportUrl + "report/?" + parameter + "&sign=" + sign
 		}
 	}
 	c.OkDetailed(reportInfo, "获取成功")

+ 1 - 1
utils/config.go

@@ -85,7 +85,7 @@ func init() {
 		ReportSecret = "vRVFCk182Hpv8CyrHsxaHhA3CgGhh4Uu" //AppSecret
 	} else {
 		ApiLog = log.Init("20060102.api")
-		ResearchReportUrl = "http://advisoryadmin.brilliantstart.cn/"
+		ResearchReportUrl = "http://advisoryadmin.brilliantstart.cn/xcx_h5/"
 		ReportAppid = "VH2ou4EKlYZz58Uj"                  //Appid
 		ReportSecret = "Q6Y5vwmx1IAA9OPkobl8qWvrnV7dGJ4k" //AppSecret
 	}