1
0
mirror of https://github.com/Mrs4s/go-cqhttp.git synced 2025-05-05 03:23:49 +08:00

Merge branch 'master' into dev

This commit is contained in:
Mrs4s 2022-02-24 01:12:16 +08:00
commit 0f06688ac6
No known key found for this signature in database
GPG Key ID: 3186E98FA19CE3A7
3 changed files with 9 additions and 17 deletions

View File

@ -26,7 +26,9 @@ body:
options: options:
- label: "我已经仔细阅读上述教程和 [\"提问前需知\"](https://github.com/Mrs4s/go-cqhttp/issues/633)" - label: "我已经仔细阅读上述教程和 [\"提问前需知\"](https://github.com/Mrs4s/go-cqhttp/issues/633)"
required: true required: true
- label: 我已知晓并同意,如果我不遵循以下格式提交 Issue或者我使用的并非最新版本或者我没有提供足够的环境信息我的 Issue 可能会被无条件自动关闭或/并锁定。 - label: "我已经使用 [dev分支版本](https://github.com/Mrs4s/go-cqhttp/actions/workflows/ci.yml) 测试过,问题依旧存在。"
required: true
- label: "我已经在 [Issue Tracker](https://github.com/Mrs4s/go-cqhttp/issues) 中找过我要提出的问题没有找到相同问题的ISSUE。"
required: true required: true
- label: 我已知晓并同意,此处仅用于汇报程序中存在的问题。若这个 Issue 是关于其他非程序本身问题,则我的 Issue 可能会被无条件自动关闭或/并锁定。(这些问题应当在 Discussion 板块提出。) - label: 我已知晓并同意,此处仅用于汇报程序中存在的问题。若这个 Issue 是关于其他非程序本身问题,则我的 Issue 可能会被无条件自动关闭或/并锁定。(这些问题应当在 Discussion 板块提出。)
required: true required: true
@ -39,24 +41,10 @@ body:
请根据实际使用环境修改以下信息。 请根据实际使用环境修改以下信息。
# Env | go-cqhttp Version # Env | go-cqhttp Version
- type: dropdown - type: input
id: env-gocq-ver id: env-gocq-ver
attributes: attributes:
label: go-cqhttp 版本 label: go-cqhttp 版本
description: 选择正在使用的版本 (未列出的版本为已不支持,请更新到最新版本。)
options:
- v1.0.0-beta8-fix1
- v1.0.0-beta8
- v1.0.0-beta7-fix2
- v1.0.0-beta7-fix1
- v1.0.0-beta7
- v1.0.0-beta6
- v1.0.0-beta5
- v1.0.0-beta4
- v1.0.0-beta3
- v1.0.0-beta2
- v1.0.0-beta1
- 更老的版本
validations: validations:
required: true required: true

View File

@ -244,7 +244,7 @@ Type: `node`
| `seq` | message | 具体消息 | 用于自定义消息 | | `seq` | message | 具体消息 | 用于自定义消息 |
特殊说明: **需要使用单独的API `/send_group_forward_msg` 发送并且由于消息段较为复杂仅支持Array形式入参。 如果引用消息和自定义消息同时出现,实际查看顺序将取消息段顺序. 特殊说明: **需要使用单独的API `/send_group_forward_msg` 发送并且由于消息段较为复杂仅支持Array形式入参。 如果引用消息和自定义消息同时出现,实际查看顺序将取消息段顺序.
另外按 [CQHTTP](https://git.io/JtxtN) 文档说明, `data` 应全为字符串, 但由于需要接收`message` 类型的消息, 所以 *仅限此Type的content字段* 支持Array套娃** 另外按 [Onebot v11](https://github.com/botuniverse/onebot-11/blob/master/message/array.md) 文档说明, `data` 应全为字符串, 但由于需要接收`message` 类型的消息, 所以 *仅限此Type的content字段* 支持Array套娃**
示例: 示例:

View File

@ -11,6 +11,7 @@ import (
"strings" "strings"
"time" "time"
"github.com/Mrs4s/go-cqhttp/global"
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
"gopkg.in/yaml.v3" "gopkg.in/yaml.v3"
@ -140,6 +141,9 @@ func ResetWorkingDir() {
} }
} }
p, _ := filepath.Abs(os.Args[0]) p, _ := filepath.Abs(os.Args[0])
if !global.PathExists(p) {
log.Fatalf("重置工作目录时出现错误: 无法找到路径 %v", p)
}
proc := exec.Command(p, args...) proc := exec.Command(p, args...)
proc.Stdin = os.Stdin proc.Stdin = os.Stdin
proc.Stdout = os.Stdout proc.Stdout = os.Stdout