فهرست منبع

更换测试路由

xingzai 3 سال پیش
والد
کامیت
6b99375fd0
2فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 2 2
      controllers/base_auth.go
  2. 1 1
      utils/config.go

+ 2 - 2
controllers/base_auth.go

@@ -162,8 +162,8 @@ func checkSign(postData map[string]string, ip string) (err error) {
 			return
 		}
 		if math.Abs(float64(timeUnix-timestamp)) > 300 {
-			//err = errors.New("当前时间异常,请调整设备时间与北京时间一致")
-			//return
+			err = errors.New("当前时间异常,请调整设备时间与北京时间一致")
+			return
 		}
 	}
 

+ 1 - 1
utils/config.go

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