Skip to content

Commit

Permalink
Merge 61e4001 into 6e47571
Browse files Browse the repository at this point in the history
  • Loading branch information
Hoshinonyaruko authored Jul 9, 2024
2 parents 6e47571 + 61e4001 commit ca3cbb9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Processor/Processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ func (p *Processors) HandleFrameworkCommand(messageText string, data interface{}
}

//link指令
if Type == "group" && strings.HasPrefix(cleanedMessage, config.GetLinkPrefix()) {
if strings.HasPrefix(cleanedMessage, config.GetLinkPrefix()) {
md, kb := generateMdByConfig()
SendMessageMd(md, kb, data, Type, p.Api, p.Apiv2)
}
Expand Down Expand Up @@ -845,7 +845,6 @@ func SendMessageMd(md *dto.Markdown, kb *keyboard.MessageKeyboard, data interfac
msgseq := echo.GetMappingSeq(msg.ID)
echo.AddMappingSeq(msg.ID, msgseq+1)
Message := &dto.MessageToCreate{
Content: "markdown",
MsgID: msg.ID,
MsgSeq: msgseq,
Markdown: md,
Expand Down Expand Up @@ -889,7 +888,6 @@ func SendMessageMd(md *dto.Markdown, kb *keyboard.MessageKeyboard, data interfac
msgseq := echo.GetMappingSeq(msg.ID)
echo.AddMappingSeq(msg.ID, msgseq+1)
Message := &dto.MessageToCreate{
Content: "markdown",
MsgID: msg.ID,
MsgSeq: msgseq,
Markdown: md,
Expand Down

0 comments on commit ca3cbb9

Please sign in to comment.