koishi-plugin-group-analysis-mx 1.5.8 → 1.5.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -911,6 +911,12 @@ class AnalysisService extends koishi_1.Service {
911
911
  }
912
912
  const resolveTopicName = (raw) => {
913
913
  const sVal = String(raw || '').trim();
914
+ // 形如 "昵称(openid)":只取昵称部分
915
+ const m = sVal.match(/^(.+?)\s*[((]([0-9A-Fa-f]{16,})[))]\s*$/);
916
+ if (m) {
917
+ const nick = m[1].trim();
918
+ return nick || topicIdToName.get(m[2]) || '群友';
919
+ }
914
920
  const cleaned = sVal.replace(/[\[\]()()]/g, '').trim();
915
921
  if (topicIdToName.has(cleaned))
916
922
  return topicIdToName.get(cleaned);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-group-analysis-mx",
3
3
  "description": "群聊分析插件 - 生成精美群聊统计报告,支持 AI 话题总结(独立版,不依赖 ChatLuna)",
4
- "version": "1.5.8",
4
+ "version": "1.5.9",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.mjs",
7
7
  "typings": "lib/index.d.ts",
@@ -51,3 +51,4 @@
51
51
 
52
52
 
53
53
 
54
+