From d7b52f841909d1457674033de97adf221cab09f3 Mon Sep 17 00:00:00 2001 From: lkddi Date: Fri, 27 Feb 2026 10:57:46 +0800 Subject: [PATCH] =?UTF-8?q?Fix:=20=E9=9A=94=E7=A6=BBAI=E5=A4=B4=E5=83=8F?= =?UTF-8?q?=EF=BC=8C=E9=98=B2=E6=AD=A2=E6=99=AE=E9=80=9A=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=EF=BC=8C=E5=B9=B6=E4=BF=AE=E5=A4=8D=E8=81=8A?= =?UTF-8?q?=E5=A4=A9=E5=85=AC=E5=B1=8F=E5=9B=BE=E5=83=8F=E7=9A=84=E8=B0=83?= =?UTF-8?q?=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/images/{headface => }/ai_bot.png | Bin resources/views/chat/partials/scripts.blade.php | 8 ++++++-- 2 files changed, 6 insertions(+), 2 deletions(-) rename public/images/{headface => }/ai_bot.png (100%) diff --git a/public/images/headface/ai_bot.png b/public/images/ai_bot.png similarity index 100% rename from public/images/headface/ai_bot.png rename to public/images/ai_bot.png diff --git a/resources/views/chat/partials/scripts.blade.php b/resources/views/chat/partials/scripts.blade.php index 2e8951e..7b610bc 100644 --- a/resources/views/chat/partials/scripts.blade.php +++ b/resources/views/chat/partials/scripts.blade.php @@ -96,7 +96,7 @@ let botDiv = document.createElement('div'); botDiv.className = 'user-item'; botDiv.innerHTML = ` - + AI小班长🤖 `; botDiv.onclick = () => { @@ -229,8 +229,12 @@ // 获取发言者头像 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'; + } const headImg = - ``; + ``; let html = '';