From 17b7646c12f281902b8cb4813ff17b0b8926bf76 Mon Sep 17 00:00:00 2001 From: JustSong Date: Sun, 21 May 2023 20:10:06 +0800 Subject: [PATCH] fix: fix unable to update custom channel's balance --- controller/channel-billing.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/controller/channel-billing.go b/controller/channel-billing.go index 9166a964..3df04117 100644 --- a/controller/channel-billing.go +++ b/controller/channel-billing.go @@ -27,6 +27,8 @@ func updateChannelBalance(channel *model.Channel) (float64, error) { switch channel.Type { case common.ChannelTypeAzure: return 0, errors.New("尚未实现") + case common.ChannelTypeCustom: + baseURL = channel.BaseURL } url := fmt.Sprintf("%s/v1/dashboard/billing/subscription", baseURL)