mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-10-15 07:20:26 +00:00
fix: fix unable to update custom channel's balance
This commit is contained in:
@@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user