Commit e5a17e8e by JustSong

fix: fix unable to update custom channel's balance

parent 128c84b3
...@@ -27,6 +27,8 @@ func updateChannelBalance(channel *model.Channel) (float64, error) { ...@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment