Skip to content

Commit

Permalink
🔧 #145 修复红包不显示的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
adlered committed May 8, 2024
1 parent 367a505 commit 9532677
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/resources/js/channel.js
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ var ChatRoomChannel = {
} else {
// Chatroom
// 判断指令消息
if ($('#catch-word').prop('checked') && (newMd.startsWith("鸽 ") || newMd.startsWith("小冰 ") || newMd.startsWith("凌 ") || newMd.startsWith("ida "))) {
if ($('#catch-word').prop('checked') && newContent.indexOf("\"msgType\":\"redPacket\"") == -1 && (newMd.startsWith("鸽 ") || newMd.startsWith("小冰 ") || newMd.startsWith("凌 ") || newMd.startsWith("ida "))) {
let robotDom = '<div class="robot-msg-item"><div class="avatar" style="background-image: url(' + robotAvatar + ')"></div><div class="robot-msg-content"> ' + newContent + ' </div></div>';
ChatRoom.addRobotMsg(robotDom);
} else {
Expand Down
Loading

0 comments on commit 9532677

Please sign in to comment.