|
@@ -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, "获取成功")
|