From 16ab36261e17e2a6f1daeae9243e52084026309e Mon Sep 17 00:00:00 2001 From: junleea <354425203@qq.com> Date: Tue, 26 Nov 2024 10:58:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dmonitor=20=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- handler/tool.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handler/tool.go b/handler/tool.go index 7d83470..73084e7 100644 --- a/handler/tool.go +++ b/handler/tool.go @@ -60,7 +60,7 @@ func SetDeviceStatusV2(c *gin.Context) { for _, v := range devices { if v == req.ID { // 继续处理请求 - worker.SetRedisWithExpire(req.ID, "1", 300) + worker.SetRedisWithExpire(req.ID, "1", time.Second*300) c.JSON(200, gin.H{"code": 0, "message": "success"}) return }