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 }