|
@@ -132,7 +132,7 @@ func Auth() gin.HandlerFunc {
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
ts := int64(t) - time.Now().UnixMilli()
|
|
ts := int64(t) - time.Now().UnixMilli()
|
|
|
- if ts >= -10*1000 && ts <= 10*1000 {
|
|
|
|
|
|
|
+ if ts < -10*1000 && ts > 10*1000 {
|
|
|
c.JSON(http.StatusUnauthorized, gin.H{
|
|
c.JSON(http.StatusUnauthorized, gin.H{
|
|
|
"code": e.ERROR,
|
|
"code": e.ERROR,
|
|
|
"msg": "apikey3",
|
|
"msg": "apikey3",
|