From a7305996417172e92ab9a23fa46d5ef39196a532 Mon Sep 17 00:00:00 2001 From: junleea <354425203@qq.com> Date: Sat, 30 Nov 2024 11:15:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=9B=91=E6=8E=A7=E7=9A=84?= =?UTF-8?q?=E8=AE=BE=E5=A4=87=E6=97=B6=E9=97=B4=E6=9C=AA=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E5=AF=BC=E8=87=B4=E6=AF=8F=E5=A4=A9=E9=83=BD=E5=8F=91=E9=80=81?= =?UTF-8?q?=E9=82=AE=E4=BB=B6=E9=80=9A=E7=9F=A5?= 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 582d74b..8596646 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", time.Second*300) + worker.SetRedisWithExpire("monitor_"+req.ID, "1", time.Second*300) c.JSON(200, gin.H{"code": 0, "message": "success"}) return }