diff --git a/public/images/bugle.png b/public/images/bugle.png new file mode 100644 index 0000000..81c4cae Binary files /dev/null and b/public/images/bugle.png differ diff --git a/resources/views/chat/partials/scripts.blade.php b/resources/views/chat/partials/scripts.blade.php index ba5bcac..6676333 100644 --- a/resources/views/chat/partials/scripts.blade.php +++ b/resources/views/chat/partials/scripts.blade.php @@ -290,12 +290,15 @@ return `${uName}`; }; - // 获取发言者头像 + // 系统播报用户(不包含 AI小班长)使用军号图标,AI小班长用专属图,普通用户用头像 + const buggleUsers = ['钓鱼播报', '星海小博士', '送花播报', '系统传音', '系统公告']; const senderInfo = onlineUsers[msg.from_user]; const senderHead = ((senderInfo && senderInfo.headface) || '1.gif').toLowerCase(); let headImgSrc = `/images/headface/${senderHead}`; if (msg.from_user === 'AI小班长') { headImgSrc = '/images/ai_bot.png'; + } else if (buggleUsers.includes(msg.from_user)) { + headImgSrc = '/images/bugle.png'; } const headImg = ``;