Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
G
go-cqhttp
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
go-cqhttp
Commits
87beb55c
Commit
87beb55c
authored
Jul 27, 2020
by
Mrs4s
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reverse ws config convert supported.
parent
557400b3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
2 deletions
+19
-2
README.md
README.md
+12
-2
main.go
main.go
+7
-0
No files found.
README.md
View file @
87beb55c
...
@@ -5,16 +5,26 @@
...
@@ -5,16 +5,26 @@
测试版可前往 Release 下载
测试版可前往 Release 下载
# 兼容性
# 兼容性
#### 接口
#### 接口
-
[x] HTTP API
-
[x] HTTP API
-
[x] 反向HTTP POST
-
[x] 反向HTTP POST
-
[x] 正向Websocket
-
[x] 正向Websocket
-
[x] 反向Websocket (测试中)
-
[x] 反向Websocket (测试中)
#### 拓展支持
-
[x] HTTP POST多点上报
-
[x] 反向WS多点连接
-
[x] 修改群名
-
[x] 消息撤回事件
-
[x] 解析/发送 回复消息
-
[x] 解析合并转发
#### 实现
#### 实现
<details>
<details>
<summary>
已实现API
</summary>
<summary>
已实现API
</summary>
##### 注意: 部分API实现与CQHTTP原版略有差异,请参考
WIKI
##### 注意: 部分API实现与CQHTTP原版略有差异,请参考
文档
| API | 功能 |
| API | 功能 |
| ------------------------ | ------------------------------------------------------------ |
| ------------------------ | ------------------------------------------------------------ |
| /get_login_info |
[
获取登录号信息
](
https://cqhttp.cc/docs/4.15/#/API?id=get_login_info-获取登录号信息
)
|
| /get_login_info |
[
获取登录号信息
](
https://cqhttp.cc/docs/4.15/#/API?id=get_login_info-获取登录号信息
)
|
...
@@ -47,7 +57,7 @@
...
@@ -47,7 +57,7 @@
<details>
<details>
<summary>
已实现Event
</summary>
<summary>
已实现Event
</summary>
##### 注意: 部分Event数据与CQHTTP原版略有差异,请参考
WIKI
##### 注意: 部分Event数据与CQHTTP原版略有差异,请参考
文档
| Event |
| Event |
| ------------------------------------------------------------ |
| ------------------------------------------------------------ |
|
[
私聊信息
](
https://cqhttp.cc/docs/4.15/#/Post?id=私聊消息
)
|
|
[
私聊信息
](
https://cqhttp.cc/docs/4.15/#/Post?id=私聊消息
)
|
...
...
main.go
View file @
87beb55c
...
@@ -56,6 +56,13 @@ func init() {
...
@@ -56,6 +56,13 @@ func init() {
if
conf
.
PostUrl
!=
""
{
if
conf
.
PostUrl
!=
""
{
goConf
.
HttpConfig
.
PostUrls
[
conf
.
PostUrl
]
=
conf
.
Secret
goConf
.
HttpConfig
.
PostUrls
[
conf
.
PostUrl
]
=
conf
.
Secret
}
}
if
conf
.
UseWsReverse
{
goConf
.
ReverseServers
[
0
]
.
Enabled
=
true
goConf
.
ReverseServers
[
0
]
.
ReverseUrl
=
conf
.
WSReverseUrl
goConf
.
ReverseServers
[
0
]
.
ReverseApiUrl
=
conf
.
WSReverseApiUrl
goConf
.
ReverseServers
[
0
]
.
ReverseEventUrl
=
conf
.
WSReverseEventUrl
goConf
.
ReverseServers
[
0
]
.
ReverseReconnectInterval
=
conf
.
WSReverseReconnectInterval
}
if
err
:=
goConf
.
Save
(
"config.json"
);
err
!=
nil
{
if
err
:=
goConf
.
Save
(
"config.json"
);
err
!=
nil
{
log
.
Fatalf
(
"保存 config.json 时出现错误: %v"
,
err
)
log
.
Fatalf
(
"保存 config.json 时出现错误: %v"
,
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