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
a5420c90
authored
Aug 16, 2025
by
Calcium-Ion
Committed by
GitHub
Aug 16, 2025
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1584 from feitianbubu/pr/use-proxy-fetch-models
feat: use proxy HTTP client fetch models
parents
5fbbb242
c57f33bf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
+5
-1
controller/channel-billing.go
+5
-1
No files found.
controller/channel-billing.go
View file @
a5420c90
...
@@ -135,7 +135,11 @@ func GetResponseBody(method, url string, channel *model.Channel, headers http.He
...
@@ -135,7 +135,11 @@ func GetResponseBody(method, url string, channel *model.Channel, headers http.He
for
k
:=
range
headers
{
for
k
:=
range
headers
{
req
.
Header
.
Add
(
k
,
headers
.
Get
(
k
))
req
.
Header
.
Add
(
k
,
headers
.
Get
(
k
))
}
}
res
,
err
:=
service
.
GetHttpClient
()
.
Do
(
req
)
client
,
err
:=
service
.
NewProxyHttpClient
(
channel
.
GetSetting
()
.
Proxy
)
if
err
!=
nil
{
return
nil
,
err
}
res
,
err
:=
client
.
Do
(
req
)
if
err
!=
nil
{
if
err
!=
nil
{
return
nil
,
err
return
nil
,
err
}
}
...
...
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