feat: keep table binding messages out of QA

This commit is contained in:
姚章浩
2026-08-13 12:55:00 +08:00
parent 2d9490f424
commit 5036071ac2
4 changed files with 108 additions and 15 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ func (r *dingTalkSettingsRouter) Handle(ctx context.Context, m dingtalk.Settings
if r == nil || r.controller == nil {
return false, "", nil
}
if _, ok := settings.ParseCommand(m.Text); !ok {
if !r.controller.ShouldHandle(ctx, m.TenantKey, m.StaffID, m.Text) {
return false, "", nil
}
out, err := r.controller.Handle(ctx, settings.SettingInput{TenantKey: m.TenantKey, Channel: m.Channel, StaffID: m.StaffID, UnionID: m.UnionID, DisplayName: m.DisplayName, Department: m.Department, Text: m.Text, ConversationType: m.ConversationType, ConversationID: m.ConversationID, ConversationTitle: m.ConversationTitle})