mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-06 21:50:05 +00:00
✏️
This commit is contained in:
@@ -182,9 +182,9 @@ func (ma *memberAPI) delete(c *gin.Context) {
|
|||||||
index := -1
|
index := -1
|
||||||
for i := 0; i < len(singleton.ServerTagToIDList[tag]); i++ {
|
for i := 0; i < len(singleton.ServerTagToIDList[tag]); i++ {
|
||||||
if singleton.ServerTagToIDList[tag][i] == id {
|
if singleton.ServerTagToIDList[tag][i] == id {
|
||||||
|
index = i
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
index = i
|
|
||||||
}
|
}
|
||||||
if index > -1 {
|
if index > -1 {
|
||||||
// 删除旧 Tag-ID 绑定关系
|
// 删除旧 Tag-ID 绑定关系
|
||||||
@@ -328,9 +328,9 @@ func (ma *memberAPI) addOrEditServer(c *gin.Context) {
|
|||||||
index := -1
|
index := -1
|
||||||
for i := 0; i < len(singleton.ServerTagToIDList[s.Tag]); i++ {
|
for i := 0; i < len(singleton.ServerTagToIDList[s.Tag]); i++ {
|
||||||
if singleton.ServerTagToIDList[s.Tag][i] == s.ID {
|
if singleton.ServerTagToIDList[s.Tag][i] == s.ID {
|
||||||
|
index = i
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
index = i
|
|
||||||
}
|
}
|
||||||
if index > -1 {
|
if index > -1 {
|
||||||
// 删除旧 Tag-ID 绑定关系
|
// 删除旧 Tag-ID 绑定关系
|
||||||
|
|||||||
Reference in New Issue
Block a user