fix: fix unable to update custom channel's balance

This commit is contained in:
JustSong 2023-05-21 20:10:06 +08:00
parent 171b818504
commit 17b7646c12

View File

@ -27,6 +27,8 @@ func updateChannelBalance(channel *model.Channel) (float64, error) {
switch channel.Type { switch channel.Type {
case common.ChannelTypeAzure: case common.ChannelTypeAzure:
return 0, errors.New("尚未实现") return 0, errors.New("尚未实现")
case common.ChannelTypeCustom:
baseURL = channel.BaseURL
} }
url := fmt.Sprintf("%s/v1/dashboard/billing/subscription", baseURL) url := fmt.Sprintf("%s/v1/dashboard/billing/subscription", baseURL)