|
@@ -39,8 +39,8 @@ func (c *YiDongController) ActivityExamine() {
|
|
|
timeUnix := time.Now().Unix() //当前格林威治时间,int64类型
|
|
|
timestamp := int64(timeInt)
|
|
|
if math.Abs(float64(timeUnix-timestamp)) > 600 {
|
|
|
- //c.FailWithMessage("当前时间异常,请调整设备时间与北京时间一致:" + strconv.Itoa(timeInt))
|
|
|
- //return
|
|
|
+ c.FailWithMessage("当前时间异常,请调整设备时间与北京时间一致:" + strconv.Itoa(timeInt))
|
|
|
+ return
|
|
|
}
|
|
|
//校验 APPID 与ip白名单
|
|
|
ip := c.Ctx.Input.IP()
|