Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
new-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
e5a17e8e
authored
May 21, 2023
by
JustSong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: fix unable to update custom channel's balance
parent
128c84b3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
controller/channel-billing.go
+2
-0
No files found.
controller/channel-billing.go
View file @
e5a17e8e
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment