qidao-openclaw-plugin 1.2.5 → 1.2.6

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +4 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qidao-openclaw-plugin",
3
- "version": "1.2.5",
3
+ "version": "1.2.6",
4
4
  "type": "module",
5
5
  "main": "./src/index.js",
6
6
  "description": "OpenClaw 栖岛聊天 Channel 插件 - 连接到栖岛聊天服务",
package/src/index.js CHANGED
@@ -86,6 +86,7 @@ const qidaoChannel = {
86
86
  default: qidaoConfig.serverUrl || 'wss://oc.qidao.chat/ws',
87
87
  });
88
88
 
89
+ // 构建新配置 - 直接在 channels.qidao 下配置
89
90
  const newCfg = {
90
91
  ...cfg,
91
92
  channels: {
@@ -93,11 +94,13 @@ const qidaoChannel = {
93
94
  qidao: {
94
95
  enabled: true,
95
96
  chatId: parseInt(chatId),
96
- serverUrl,
97
+ serverUrl: serverUrl || 'wss://oc.qidao.chat/ws',
97
98
  },
98
99
  },
99
100
  };
100
101
 
102
+ console.log('配置已保存:', newCfg.channels.qidao);
103
+
101
104
  return { cfg: newCfg, accountId: 'default' };
102
105
  },
103
106
  },