Skip to content

Commit

Permalink
beta419
Browse files Browse the repository at this point in the history
  • Loading branch information
Hoshinonyaruko committed Jun 14, 2024
1 parent 4b2a9a9 commit 9d08f10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions handlers/message_parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ func parseMessageContent(paramsMessage callapi.ParamsContent, message callapi.Ac
mylog.Printf("Error marshaling mdContentMap to JSON:%v", err)
}
encoded := base64.StdEncoding.EncodeToString(mdContentBytes)
messageText = "[CQ:markdown,data=" + encoded + "]"
messageText = "[CQ:markdown,data=base64://" + encoded + "]"
} else if mdContentStr, isString := mdContent.(string); isString {
// mdContent是string
if strings.HasPrefix(mdContentStr, "base64://") {
Expand All @@ -549,7 +549,7 @@ func parseMessageContent(paramsMessage callapi.ParamsContent, message callapi.Ac
mylog.Printf("Error marshaling jsonMap to JSON:%v", err)
}
encoded := base64.StdEncoding.EncodeToString(mdContentBytes)
messageText = "[CQ:markdown,data=" + encoded + "]"
messageText = "[CQ:markdown,data=base64://" + encoded + "]"
}
}
} else {
Expand Down

0 comments on commit 9d08f10

Please sign in to comment.