From aeb4685f2f1c678b1d3a6420c2e26a78fa77fd4b Mon Sep 17 00:00:00 2001 From: quzard <1191890118@qq.com> Date: Tue, 20 Jun 2023 15:00:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=8D=E4=BB=A3=20=E4=B8=8D=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E4=BD=99=E9=A2=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controller/channel-billing.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/controller/channel-billing.go b/controller/channel-billing.go index 4f89c6ed..b951326e 100644 --- a/controller/channel-billing.go +++ b/controller/channel-billing.go @@ -9,6 +9,7 @@ import ( "one-api/common" "one-api/model" "strconv" + "strings" "time" "github.com/gin-gonic/gin" @@ -160,6 +161,9 @@ func updateChannelBalance(channel *model.Channel) (float64, error) { case common.ChannelTypeAzure: return 0, errors.New("尚未实现") case common.ChannelTypeCustom: + if strings.Contains(channel.Name, "反代") { + return 0, errors.New("尚未实现") + } baseURL = channel.BaseURL case common.ChannelTypeOpenAISB: return updateChannelOpenAISBBalance(channel)