From 1c33eed181eb8b3eeb24074e964a110ed7c58c62 Mon Sep 17 00:00:00 2001 From: huzhengrong Date: Fri, 24 Oct 2025 17:22:22 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=A6=84=20refactor(msgManager):=20?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E4=B8=8D=E9=9C=80=E8=A6=81=E7=9A=84=E5=87=BD?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service/msgManager.js | 34 ---------------------------------- 1 file changed, 34 deletions(-) diff --git a/service/msgManager.js b/service/msgManager.js index 733a02b..4c8b583 100644 --- a/service/msgManager.js +++ b/service/msgManager.js @@ -162,40 +162,6 @@ class MessageQueue extends EventEmitter { sign = sign.toUpperCase(); return sign; } - - formatUrls(urls) { - if (!urls) { - return '无链接'; - } - - // 处理数组形式的URLs - if (Array.isArray(urls)) { - if (urls.length === 0) { - return '无链接'; - } - - if (urls.length === 1) { - return `📄 查看`; - } - - // 多个链接的情况 - let linksHtml = '
'; - urls.forEach((url, index) => { - linksHtml += `📄 链接${ - index + 1 - }`; - }); - linksHtml += "
"; - return linksHtml; - } - - // 处理字符串形式的URL - if (typeof urls === "string") { - return `📄 查看`; - } - - return '链接格式错误'; - } } const messageQueue = new MessageQueue();