fix: validate card business responses and trim help

This commit is contained in:
姚章浩
2026-08-13 15:10:09 +08:00
parent e5be9ee780
commit 4dbc20ee74
4 changed files with 44 additions and 11 deletions
+1 -1
View File
@@ -77,7 +77,7 @@ func (c *Controller) Handle(ctx context.Context, in SettingInput) (string, error
args = []string{action, strings.TrimSpace(in.Text)}
}
if explicit && cmd.Name == "/help" {
return "📖 使用帮助:\n• 直接发送问题:普通提问\n• /setting:查看个人设置\n• /setting language <auto|zh-CN|en|ja|ko|es>:设置回答语言\n• /help:查看本帮助", nil
return "设置回答语言:/setting language <auto|zh-CN|en|ja|ko|es>\n例如:/setting language en", nil
}
if explicit && len(args) == 1 && len(args[0]) == 6 && allDigits(args[0]) {
if strings.TrimSpace(in.ConversationType) != "direct" {