From 2437c90d68f8b7ff96c9804b889c3c71f7c57ffe Mon Sep 17 00:00:00 2001 From: RedwindA Date: Sat, 27 Sep 2025 22:18:46 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=9C=A8=E6=B7=BB=E5=8A=A0=E5=92=8C?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=B8=A0=E9=81=93=E6=97=B6=E9=87=8D=E7=BD=AE?= =?UTF-8?q?=E4=BB=A3=E7=90=86=E5=AE=A2=E6=88=B7=E7=AB=AF=E7=BC=93=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controller/channel.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/controller/channel.go b/controller/channel.go index 480d5b4f..5d075f3c 100644 --- a/controller/channel.go +++ b/controller/channel.go @@ -8,6 +8,7 @@ import ( "one-api/constant" "one-api/dto" "one-api/model" + "one-api/service" "strconv" "strings" @@ -633,6 +634,7 @@ func AddChannel(c *gin.Context) { common.ApiError(c, err) return } + service.ResetProxyClientCache() c.JSON(http.StatusOK, gin.H{ "success": true, "message": "", @@ -894,6 +896,7 @@ func UpdateChannel(c *gin.Context) { return } model.InitChannelCache() + service.ResetProxyClientCache() channel.Key = "" clearChannelInfo(&channel.Channel) c.JSON(http.StatusOK, gin.H{