Skip to content

Commit

Permalink
解决撤回消息中原消息中二进制消息数据格式错误问题
Browse files Browse the repository at this point in the history
  • Loading branch information
heavyrian2012 committed Sep 7, 2023
1 parent 1e5ac9b commit 932ee92
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2278,7 +2278,7 @@ public ErrorCode recallMessage(long messageUid, String operatorId, String client
json.put("c", message.getContent().getContent());
json.put("e", message.getContent().getExtra());
if (message.getContent().getData() != null && message.getContent().getData().size() > 0) {
json.put("b", Base64.getEncoder().encode(message.getContent().getData().toByteArray()));
json.put("b", Base64.getEncoder().encodeToString(message.getContent().getData().toByteArray()));
}
if (message.getContent().getMediaType() > 0) {
json.put("mt", message.getContent().getMediaType());
Expand Down

0 comments on commit 932ee92

Please sign in to comment.