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
03930132
authored
Apr 23, 2023
by
JustSong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug fix
parent
12aa6c35
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
controller/relay.go
+1
-1
web/src/components/ChannelsTable.js
+1
-1
No files found.
controller/relay.go
View file @
03930132
...
@@ -11,7 +11,7 @@ import (
...
@@ -11,7 +11,7 @@ import (
func
Relay
(
c
*
gin
.
Context
)
{
func
Relay
(
c
*
gin
.
Context
)
{
channelType
:=
c
.
GetInt
(
"channel"
)
channelType
:=
c
.
GetInt
(
"channel"
)
host
:=
common
.
ChannelHosts
[
channelType
]
host
:=
common
.
ChannelHosts
[
channelType
]
req
,
err
:=
http
.
NewRequest
(
c
.
Request
.
Method
,
fmt
.
Sprintf
(
"%s
/
%s"
,
host
,
c
.
Request
.
URL
.
String
()),
c
.
Request
.
Body
)
req
,
err
:=
http
.
NewRequest
(
c
.
Request
.
Method
,
fmt
.
Sprintf
(
"%s%s"
,
host
,
c
.
Request
.
URL
.
String
()),
c
.
Request
.
Body
)
if
err
!=
nil
{
if
err
!=
nil
{
c
.
JSON
(
http
.
StatusOK
,
gin
.
H
{
c
.
JSON
(
http
.
StatusOK
,
gin
.
H
{
"error"
:
gin
.
H
{
"error"
:
gin
.
H
{
...
...
web/src/components/ChannelsTable.js
View file @
03930132
...
@@ -281,7 +281,7 @@ const ChannelsTable = () => {
...
@@ -281,7 +281,7 @@ const ChannelsTable = () => {
<
Table
.
Footer
>
<
Table
.
Footer
>
<
Table
.
Row
>
<
Table
.
Row
>
<
Table
.
HeaderCell
colSpan
=
'
6
'
>
<
Table
.
HeaderCell
colSpan
=
'
7
'
>
<
Button
size
=
'small'
as
=
{
Link
}
to
=
'/channel/add'
loading
=
{
loading
}
>
<
Button
size
=
'small'
as
=
{
Link
}
to
=
'/channel/add'
loading
=
{
loading
}
>
添加新的渠道
添加新的渠道
<
/Button
>
<
/Button
>
...
...
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