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
ac8b40a2
authored
Nov 08, 2025
by
NoahCode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(channel): update channel identification logic in error processing
parent
fd55ba7f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
controller/relay.go
+1
-1
No files found.
controller/relay.go
View file @
ac8b40a2
...
...
@@ -285,7 +285,7 @@ func processChannelError(c *gin.Context, channelError types.ChannelError, err *t
logger
.
LogError
(
c
,
fmt
.
Sprintf
(
"channel error (channel #%d, status code: %d): %s"
,
channelError
.
ChannelId
,
err
.
StatusCode
,
err
.
Error
()))
// 不要使用context获取渠道信息,异步处理时可能会出现渠道信息不一致的情况
// do not use context to get channel info, there may be inconsistent channel info when processing asynchronously
if
service
.
ShouldDisableChannel
(
channelError
.
Channel
Id
,
err
)
&&
channelError
.
AutoBan
{
if
service
.
ShouldDisableChannel
(
channelError
.
Channel
Type
,
err
)
&&
channelError
.
AutoBan
{
gopool
.
Go
(
func
()
{
service
.
DisableChannel
(
channelError
,
err
.
Error
())
})
...
...
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