Skip to content
Closed
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
8 changes: 2 additions & 6 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@

name: 检查 & 部署文档
name: 部署文档

on:
push:
branches:
- main
pull_request:
branches:
- main

permissions:
contents: write

jobs:
deploy-pages:
deploy-gh-pages:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down Expand Up @@ -46,7 +43,6 @@ jobs:
> src/.vuepress/dist/.nojekyll

- name: 部署文档
if: github.event_name == 'push' # 仅限合并后才会发布
uses: JamesIves/github-pages-deploy-action@v4
with:
# 部署文档
Expand Down
17 changes: 10 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,20 @@
"docs:update-package": "pnpm dlx vp-update"
},
"devDependencies": {
"@vuepress/bundler-vite": "2.0.0-rc.27",
"sass-embedded": "^1.98.0",
"vue": "^3.5.31",
"vuepress": "2.0.0-rc.27",
"vuepress-theme-hope": "2.0.0-rc.104"
"@vuepress/bundler-vite": "2.0.0-rc.26",
"sass-embedded": "^1.97.3",
"vue": "^3.5.22",
"vuepress": "2.0.0-rc.26",
"vuepress-theme-hope": "2.0.0-rc.103",
"vite": "npm:rolldown-vite@7.3.1"
},
"pnpm": {
"onlyBuiltDependencies": [
"@parcel/watcher",
"esbuild"
]
],
"overrides": {
"vite": "npm:rolldown-vite@7.3.1"
}
},
"packageManager": "pnpm@9.15.5"
}
2,980 changes: 1,490 additions & 1,490 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

4 changes: 0 additions & 4 deletions src/.vuepress/navbar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ export default navbar([
text: "web",
link: "web/"
},
{
text: "bot",
link: "bot/"
},
]
},
{
Expand Down
4 changes: 0 additions & 4 deletions src/.vuepress/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,6 @@ export default hopeTheme({
components: ["Badge", "VPCard"],
},

copyCode: {
showInMobile: true
},

icon: {
prefix: "fa6-solid:",
},
Expand Down
19 changes: 6 additions & 13 deletions src/api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,13 @@ title: API
> **[web](./web/)**
> -云湖网页版API已记录的所有API文档

* 4
::: warning 由于云湖域名 `https://*.jwznb.com/` 是防盗链,需要请求头加上 `referer:http://myapp.jwznb.com` 才可正常获取内容,否则会403.

> **[bot](./bot/)**
> -云湖bot/机器人已记录的所有API文档

::: warning
* `https://chat-audio1.jwznb.com/` 音频路由
* `https://chat-file.jwznb.com/` 文件路由
* `https://chat-img.jwznb.com/` 图片路由
* `https://chat-video1.jwznb.com/` 视频路由

云湖数据床地址需要请求头加上 `referer: http://myapp.jwznb.com` 才可正常获取内容,否则会403.
*即指:
https://chat-audio1.jwznb.com/ 音频路由
https://chat-file.jwznb.com/ 文件路由
https://chat-img.jwznb.com/ 图片路由
https://chat-video1.jwznb.com/ 视频路由

当发送的文件体积过大时, `chat-file.jwznb.com` 文件路由请求下载时会重定向到 `chat-file-oss.jwznb.com` 这个路由不需要referer.
:::

<Catalog />
171 changes: 0 additions & 171 deletions src/api/bot/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,174 +3,3 @@ title: Bot API
---

## 此目录下为云湖官网bot机器人文档

::: tip

这里收集了一些由于API请求格式不规范等导致错误的响应,欢迎补充
(请求头:服务器会区分大小写)
:::

::: tabs#BotApiErrpr


@tab:active 群聊中未添加机器人

```JSONC
{
"code": -1,
"msg": "群(ID:xxx)中未添加当前机器人(ID: xxxxxxxx)。"
}
```

@tab:active 不存在/chat-id错误

```JSONC
{
"code": -1,
"msg": "群(ID:xxx)不存在。"
}
```

@tab:active chat-type错误

群聊:

```JSONC
{
"code": 1002,
"msg": "chat-type取值错误,取值仅支持group、user"
}
```

用户:

```JSONC
{
"code": 1002,
"msg": "recvType取值错误,取值仅支持group、user"
}
```

@tab:active token错误

```JSONC
{
"code": 1003,
"msg": "非法token"
}
```

@tab:active 缺少chat-id

```JSONC
{
"code": 1002,
"msg": "chat-id值错误,值不能为空"
}
```

@tab:active token不存在

```JSONC
{
"code": 1002,
"msg": "token不存在"
}
```
@tab:active 请求json错误

第一种:

```JSONC
{
"code": 1002,
"msg": "请求参数应为json格式,Body内容为: {}" // {}是请求json内容
}
```

第二种:

```JSONC
{
"code": 1002,
"msg": "请求参数应为json格式"
}
```

@tab:active 用户未添加机器人

```JSONC
{
"code": 1003,
"msg": "recvId值错误,该用户不是机器人好友"
}
```

@tab:active contentType错误

```JSONC
{
"code": 1002,
"msg": "contentType取值错误,请翻看文档"
}
```

@tab:active 消息为空

```JSONC
{
"code": 1002,
"msg": "消息内容不能为空"
}
```

@tab:active msgId错误/无权修改

```JSONC
{
"code": -1,
"msg": "消息不存在或无权限修改"
}
```

@tab:active 媒体上传失败

图片:

```JSONC
{
"code": -1,
"msg": "图片获取失败"
}
```

视频:

```JSONC
{
"code": -1,
"msg": "视频获取失败"
}
```

文件:

```JSONC
{
"code": -1,
"msg": "文件获取失败"
}
```

@tab:active 看板content内容为空

```JSONC
{
"code": 1002,
"msg": "看板内容不能为空"
}
```

:::

<Catalog />
Loading