Sfoglia il codice sorgente

修改路由配置到测试

xingzai 3 anni fa
parent
commit
87e32aba3b
2 ha cambiato i file con 2 aggiunte e 3 eliminazioni
  1. 0 1
      controllers/base_auth.go
  2. 2 2
      utils/config.go

+ 0 - 1
controllers/base_auth.go

@@ -190,7 +190,6 @@ func checkSign(postData map[string]string, ip string) (err error) {
 	//md5.Sum([]byte(signStr+"key="+key))  这是md5加密出来后的每个字符的ascall码,需要再转换成对应的字符
 	//3,全转大写(md5(拼装的字符串后+分配给你的app_secret))
 	sign := strings.ToUpper(fmt.Sprintf("%x", md5.Sum([]byte(signStr+"secret="+openApiUserInfo.Secret))))
-	fmt.Println(sign)
 	if sign != ownSign {
 		utils.ApiLog.Println(fmt.Sprintf("签名校验异常,签名字符串:%v;服务端签名值:%v", signStr, sign))
 		return errors.New("签名校验异常,请核实签名")

+ 2 - 2
utils/config.go

@@ -78,10 +78,10 @@ func init() {
 	if RunMode == "release" {
 		logDir := `/data/rdlucklog/hongze_open_api`
 		ApiLog = log.Init("20060102.api", logDir)
-		ResearchReportUrl = "127.0.0.1:8608/api/"
+		ResearchReportUrl = "http://8.136.199.33:8608/api/"
 	} else {
 		ApiLog = log.Init("20060102.api")
-		ResearchReportUrl = "http://127.0.0.1:8608/api/"
+		ResearchReportUrl = "http://8.136.199.33:8608/api/"
 	}
 }