fix: fix unable to update custom channel's balance

This commit is contained in:
JustSong
2023-05-21 20:10:06 +08:00
parent 128c84b338
commit e5a17e8ec7

View File

@@ -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)