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 = '';