From 104928aeb649e99f15270c5290fc1154b259e5b0 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期五, 03 十一月 2023 17:33:59 +0800
Subject: [PATCH] fix
---
api/v1/device.go | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/api/v1/device.go b/api/v1/device.go
index 5c08540..4576cc7 100644
--- a/api/v1/device.go
+++ b/api/v1/device.go
@@ -29,7 +29,7 @@
if !ok {
return
}
- if params.CurrentDeviceID != "" {
+ if params.CurrentDeviceID == "" {
ctx.Fail(ecode.ParamsErr)
return
}
--
Gitblit v1.8.0