Compare commits
No commits in common. "3be19bf29cddbdcabfbbb11312af3af05335fe4e" and "f10e583aa8692adb4b059c43c1097280a608280a" have entirely different histories.
3be19bf29c
...
f10e583aa8
|
|
@ -60,7 +60,7 @@ func SetDeviceStatusV2(c *gin.Context) {
|
||||||
for _, v := range devices {
|
for _, v := range devices {
|
||||||
if v == req.ID {
|
if v == req.ID {
|
||||||
// 继续处理请求
|
// 继续处理请求
|
||||||
worker.SetRedisWithExpire(req.ID, "1", time.Second*300)
|
worker.SetRedisWithExpire(req.ID, "1", 300)
|
||||||
c.JSON(200, gin.H{"code": 0, "message": "success"})
|
c.JSON(200, gin.H{"code": 0, "message": "success"})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue