@alemonjs/qq-bot 2.1.9 → 2.1.10

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/lib/desktop.js +4 -3
  2. package/package.json +2 -2
package/lib/desktop.js CHANGED
@@ -22,12 +22,13 @@ const activate = context => {
22
22
  webView.onMessage(data => {
23
23
  try {
24
24
  if (data.type === 'qq-bot.form.save') {
25
- const qqBot = data.data;
25
+ const db = data.data;
26
26
  const config = getConfig();
27
27
  const value = config.value ?? {};
28
28
  value['qq-bot'] = {
29
- ...qqBot,
30
- master_key: qqBot.master_key.split(',')
29
+ ...db,
30
+ master_key: db.master_key?.split(',') ?? null,
31
+ master_id: db.master_id?.split(',') ?? null
31
32
  };
32
33
  config.saveValue(value);
33
34
  context.notification('QQ Bot 配置保存成功~');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alemonjs/qq-bot",
3
- "version": "2.1.9",
3
+ "version": "2.1.10",
4
4
  "description": "阿柠檬qq-bot平台连接",
5
5
  "author": "lemonade",
6
6
  "license": "MIT",
@@ -74,5 +74,5 @@
74
74
  "type": "git",
75
75
  "url": "https://github.com/lemonade-lab/alemonjs.git"
76
76
  },
77
- "gitHead": "743b70375f728a1584ae149bbadcd04378540ade"
77
+ "gitHead": "6f36000eddf636146e6e3d7218237ffbd7c4e4c5"
78
78
  }