Skip to content

Commit

Permalink
fix: fix unable to update custom channel's balance
Browse files Browse the repository at this point in the history
  • Loading branch information
songquanpeng committed May 21, 2023
1 parent 171b818 commit 17b7646
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions controller/channel-billing.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 17b7646

Please sign in to comment.