fix: debug

This commit is contained in:
徐俊杰 2025-06-19 09:15:10 +08:00
parent 48a47a8681
commit 03adb50fee
2 changed files with 4 additions and 0 deletions

View File

@ -176,7 +176,9 @@ func (r *Robot) Run() {
} else {
ruleResponse := ruleResponse
task.SetResponse(ruleResponse.Response)
r.mu.Lock()
r.RegisterDelayTask(task)
r.mu.Unlock()
}
break
}

View File

@ -7,6 +7,7 @@
package robot
import (
"fmt"
"fonchain-fiee/pkg/service/asChat/dto"
"strings"
)
@ -27,6 +28,7 @@ func ParseReplyRule(data *dto.ChatAutoReplyData) (r Reply) {
} else {
keywords = strings.Split(v.Content, ",")
}
fmt.Println("ParseReplyRule 解析keywords:", keywords)
r.Rules = append(r.Rules, NewReplyWhenHitKeywords(keywords))
case "joinSession": //加入聊天后回复
r.Rules = append(r.Rules, NewReplyWhenUserJoinSession())