chore: 添加命令说明,去除url移除
This commit is contained in:
parent
be37dcc1fd
commit
1f7b082e02
@ -12,8 +12,10 @@ import (
|
||||
)
|
||||
|
||||
func init() {
|
||||
handler.RegisterHandler("exec", runInDocker, constants.LEVEL_TRUSTED)
|
||||
handler.RegisterHandler("reboot", restartDocker, constants.LEVEL_TRUSTED)
|
||||
handler.RegisterHandler("exec", runInDocker, constants.LEVEL_USER)
|
||||
handler.RegisterHelpInform("exec", "执行命令")
|
||||
handler.RegisterHandler("reboot", restartDocker, constants.LEVEL_USER)
|
||||
handler.RegisterHelpInform("reboot", "重启环境")
|
||||
}
|
||||
|
||||
func runInDocker(msg model.Message) (reply model.Reply) {
|
||||
|
@ -87,7 +87,7 @@ func extractQQDocURL(input string) (string, error) {
|
||||
return "", fmt.Errorf("解析 JSON 失败: %w", err)
|
||||
}
|
||||
url, _ = resolveFinalURL(url)
|
||||
url, _ = removeTrackingParams(url)
|
||||
// url, _ = removeTrackingParams(url)
|
||||
return url, nil
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user