Sfoglia il codice sorgente

fix(service): 修复 UDP 状态配置错误

- 将 "开通" UDP 对应的 IsBanUdp 值改为 0- 将 "关闭" UDP 对应的 IsBanUdp值改为 1
fusu 3 settimane fa
parent
commit
be1b42a1a0
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      internal/service/host.go

+ 2 - 2
internal/service/host.go

@@ -263,10 +263,10 @@ func (s *hostService) GetGlobalLimitConfig(ctx context.Context, hostId int) (v1.
 
 	if val, ok := configsMap[IsBanUdp]; ok {
 		if val == "开通" {
-			data.IsBanUdp = 1
+			data.IsBanUdp = 0
 		}
 		if val == "关闭" {
-			data.IsBanUdp = 0
+			data.IsBanUdp = 1
 		}
 	}
 	return data, nil