fix: QQ interrupt text explicitly requires output_send__ reply

This commit is contained in:
root
2026-07-18 21:29:00 +08:00
parent 2284d8897c
commit 02997a0dca

View File

@ -716,9 +716,9 @@ func (p *Plugin) handleWebhook(w http.ResponseWriter, r *http.Request) {
outputTool := "output_send__" + p.name
var interrupt string
if evt.MessageType == "group" {
interrupt = fmt.Sprintf("来自%s的%s群聊消息通过id%d使用%sget_message工具获取消息正文。如果消息包含引用回复使用%sget_historygroup_id=%d拉取最近消息以确认引用上下文。获取后使用%s工具回复该群聊用%s_help查看JSON格式要求", nickname, groupName, localID, tp, tp, evt.GroupID, outputTool, outputTool)
interrupt = fmt.Sprintf("来自%s的%s群聊消息通过id%d使用%sget_message工具获取消息正文。如果消息包含引用回复使用%sget_historygroup_id=%d拉取最近消息以确认引用上下文。必须使用%s工具回复该群聊用%s_help查看JSON格式要求,系统不会自动发送回复", nickname, groupName, localID, tp, tp, evt.GroupID, outputTool, outputTool)
} else {
interrupt = fmt.Sprintf("来自%s的私聊消息通过id%d使用%sget_message工具获取消息正文。如果消息包含引用回复使用%sget_historyuser_id=%d拉取最近消息以确认引用上下文。获取后使用%s工具回复对方用%s_help查看JSON格式要求", nickname, localID, tp, tp, evt.UserID, outputTool, outputTool)
interrupt = fmt.Sprintf("来自%s的私聊消息通过id%d使用%sget_message工具获取消息正文。如果消息包含引用回复使用%sget_historyuser_id=%d拉取最近消息以确认引用上下文。必须使用%s工具回复对方用%s_help查看JSON格式要求,系统不会自动发送回复", nickname, localID, tp, tp, evt.UserID, outputTool, outputTool)
}
if p.adminID > 0 && evt.UserID == p.adminID {
interrupt = "【重要!老大消息】" + interrupt