mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-11-04 16:40:21 +00:00
✏️
This commit is contained in:
1 parent
5a60a2323b
commit
2dcbd1d0e0
1 file changed
+2
-2
@@ -182,9 +182,9 @@ func (ma *memberAPI) delete(c *gin.Context) {
|
||||
index := -1
|
||||
for i := 0; i < len(singleton.ServerTagToIDList[tag]); i++ {
|
||||
if singleton.ServerTagToIDList[tag][i] == id {
|
||||
index = i
|
||||
break
|
||||
}
|
||||
index = i
|
||||
}
|
||||
if index > -1 {
|
||||
// 删除旧 Tag-ID 绑定关系
|
||||
@@ -328,9 +328,9 @@ func (ma *memberAPI) addOrEditServer(c *gin.Context) {
|
||||
index := -1
|
||||
for i := 0; i < len(singleton.ServerTagToIDList[s.Tag]); i++ {
|
||||
if singleton.ServerTagToIDList[s.Tag][i] == s.ID {
|
||||
index = i
|
||||
break
|
||||
}
|
||||
index = i
|
||||
}
|
||||
if index > -1 {
|
||||
// 删除旧 Tag-ID 绑定关系
|
||||
|
||||
Reference in new issue
Block a user