From 5505ba460ecf80b2800131c65f6b47693c73334d Mon Sep 17 00:00:00 2001 From: fish Date: Wed, 17 Apr 2019 20:53:53 +0800 Subject: [PATCH] =?UTF-8?q?fix=E8=BF=9B=E5=85=A5=E5=92=8C=E7=A6=BB?= =?UTF-8?q?=E5=BC=80=E5=88=A4=E6=96=AD=E5=8F=8D=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- router.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/router.go b/router.go index 779fade..3cf3720 100644 --- a/router.go +++ b/router.go @@ -323,12 +323,12 @@ func push(c *gin.Context) { log.Printf("yunhorndebug.origin.%s|%s|%d|%d|%d|%d|%d", oldData3, nowTmpData, addr, dtype, cs2001, tof, durationAsInt64) if nowTmpData == "1#0" { - if durationAsInt64 < extensionInTime { + if durationAsInt64 < extensionOutTime { c.JSON(http.StatusOK, gin.H{"status": http.StatusOK, "data": "not enough time"}) return } } else { - if durationAsInt64 < extensionOutTime { + if durationAsInt64 < extensionInTime { c.JSON(http.StatusOK, gin.H{"status": http.StatusOK, "data": "not enough time"}) return }