diff --git a/handler/exec/exec.go b/handler/exec/exec.go index 465f725..27d7ee5 100644 --- a/handler/exec/exec.go +++ b/handler/exec/exec.go @@ -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) { diff --git a/handler/urlparser/url.go b/handler/urlparser/url.go index f9461f7..1c30b64 100644 --- a/handler/urlparser/url.go +++ b/handler/urlparser/url.go @@ -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 }