瀏覽代碼

fix: fix unable to update custom channel's balance

JustSong 2 年之前
父節點
當前提交
17b7646c12
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      controller/channel-billing.go

+ 2 - 0
controller/channel-billing.go

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