Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: 内置gocq相关说明 #301

Merged
merged 2 commits into from
Dec 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added docs/deploy/images/platform-qq-builtin-gocq-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/deploy/images/platform-qq-builtin-gocq-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/deploy/images/platform-qq-builtin-gocq-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
41 changes: 40 additions & 1 deletion docs/deploy/platform-qq.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,14 @@ title: QQ

## 内置客户端 <Badge type="tip" text="v1.4.5" />

海豹从 <Badge type="tip" text="v1.4.5"/> 开始提供了内置客户端的连接方式
海豹从 <Badge type="tip" text="v1.4.5"/> 开始提供内置客户端的连接方式

::: warning

需要知道的是,该方案也是前言中提到的非官方机器人,并不受到 QQ 官方认可。

M 系列芯片 Mac 用户与部分无法使用内置客户端的手机用户请移步至[内置 gocq](#内置-gocq)

:::

::: danger 危险:部分过时系统不支持
Expand Down Expand Up @@ -119,6 +121,43 @@ Windows Server 2012 可能会缺少部分运行库,需要自行下载安装。

:::

## 内置 gocq <Badge type="tip" text="v1.5.0" />

海豹从 <Badge type="tip" text="v1.5.0"/> 开始提供内置 gocq 的连接方式。

::: warning

需要知道的是,该方案也是前言中提到的非官方机器人,并不受到 QQ 官方认可。

:::

进入海豹 Web UI 的「账号设置」新增连接,选择账号类型「QQ(内置 gocq)」,填写 QQ 号,其余内容无需修改:

<img src="./images/platform-qq-builtin-gocq-1.png" alt="选择内置 gocq" >
<img src="./images/platform-qq-builtin-gocq-2.png" alt="内置 gocq 配置">

随后使用登录了目标账号的手机 QQ 尽快扫码登录(二维码会在十秒左右出现,请耐心等待):

<img src="./images/platform-qq-builtin-gocq-3.png" alt="内置 gocq 扫码登录">

在手机上确认登录以后,等待状态变为「已连接」即可。

登录的账号由扫码的账号决定,请不要询问 `为什么登录的是我自己的账号` 之类的问题。

::: warning 安卓端海豹扫码

由于 QQ 的安全策略并不支持图片识别或长按扫描二维码登录,你需要两个手机(一个运行海豹,一个扫码)或下载 TIM 软件扫码登录。

:::

::: warning 注意

使用此方案如遇到登录失败、无法回复等情况请先 `尝试删除账号重新添加`、`在「账号设置」界面切换签名服务` 等方法。

修改签名时*请勿随意修改签名版本*,除非你知道自己在干什么。

:::

## 分离部署

::: info 分离部署
Expand Down
1 change: 1 addition & 0 deletions docs/deploy/quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ chmod +x ./sealdice-core
```zsh
chmod +x ./sealdice-core && xattr -rd com.apple.quarantine ./sealdice-core
chmod +x ./lagrange/Lagrange.OneBot && xattr -rd com.apple.quarantine ./lagrange/Lagrange.OneBot
chmod +x ./lagrange/go-cqhttp && xattr -rd com.apple.quarantine ./lagrange/go-cqhttp
```

这两条命令移除海豹核心程序和 Lagrange 的 [隔离属性](https://zhuanlan.zhihu.com/p/611471192),并给予其足够的运行权限。
Expand Down