wechaty-web-panel 1.6.69 → 1.6.70

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.
package/CHANGELOG.md CHANGED
@@ -1,7 +1,8 @@
1
1
  ## 更新日志
2
2
 
3
- ### V1.6.69(2024-12-10)
3
+ ### V1.6.70(2024-12-10)
4
4
  1、修复批量发消息失败
5
+ 2、历史记录重启不清除
5
6
 
6
7
  ### V1.6.68(2024-11-29)
7
8
  1、支持群消息带@
@@ -16,7 +16,7 @@ function initDb() {
16
16
  const dbpath = baseDir + "aichat.db";
17
17
  console.log('聊天记录路径:如果开启了记录会存到此处,未开启不会记录,所有记录都是存在本地', dbpath);
18
18
  if (fs_1.default.existsSync(dbpath)) {
19
- fs_1.default.unlinkSync(dbpath);
19
+ // fs.unlinkSync(dbpath);
20
20
  }
21
21
  rdb = (0, nedb_js_1.default)(dbpath);
22
22
  }
@@ -15,9 +15,9 @@ function initDb() {
15
15
  if (!rdb) {
16
16
  const baseDir = path_1.default.join(os_1.default.homedir(), path_1.default.sep, ".wechaty", "wechaty-panel-cache", global_js_1.default.getApikey(), path_1.default.sep);
17
17
  const dbpath = baseDir + "chatHistory.db";
18
- if (fs_1.default.existsSync(dbpath)) {
19
- fs_1.default.unlinkSync(dbpath);
20
- }
18
+ // if (fs.existsSync(dbpath)) {
19
+ // fs.unlinkSync(dbpath);
20
+ // }
21
21
  rdb = (0, nedb_js_1.default)(dbpath);
22
22
  }
23
23
  }
@@ -15,7 +15,7 @@ function initDb() {
15
15
  const baseDir = path_1.default.join(os_1.default.homedir(), path_1.default.sep, ".wechaty", "wechaty-panel-cache", global_js_1.default.getApikey(), path_1.default.sep);
16
16
  const dbpath = baseDir + "room.db";
17
17
  if (fs_1.default.existsSync(dbpath)) {
18
- fs_1.default.unlinkSync(dbpath);
18
+ // fs.unlinkSync(dbpath);
19
19
  }
20
20
  rdb = (0, nedb_js_1.default)(dbpath);
21
21
  }
@@ -6,7 +6,7 @@ exports.packageJson = void 0;
6
6
  */
7
7
  exports.packageJson = {
8
8
  "name": "wechaty-web-panel",
9
- "version": "1.6.69",
9
+ "version": "1.6.70",
10
10
  "description": "智能微秘书插件",
11
11
  "exports": {
12
12
  ".": {
@@ -78,7 +78,7 @@ exports.packageJson = {
78
78
  "dependencies": {
79
79
  "@dqbd/tiktoken": "^1.0.2",
80
80
  "ali-oss": "^6.21.0",
81
- "axios": "^1.6.6",
81
+ "axios": "^1.7.4",
82
82
  "baidu-aip-sdk": "^4.16.10",
83
83
  "dayjs": "^1.11.7",
84
84
  "eventsource-parser": "^1.0.0",
@@ -10,7 +10,7 @@ function initDb() {
10
10
  const dbpath = baseDir + "aichat.db";
11
11
  console.log('聊天记录路径:如果开启了记录会存到此处,未开启不会记录,所有记录都是存在本地', dbpath);
12
12
  if (fs.existsSync(dbpath)) {
13
- fs.unlinkSync(dbpath);
13
+ // fs.unlinkSync(dbpath);
14
14
  }
15
15
  rdb = nedb(dbpath);
16
16
  }
@@ -9,9 +9,9 @@ function initDb() {
9
9
  if (!rdb) {
10
10
  const baseDir = path.join(os.homedir(), path.sep, ".wechaty", "wechaty-panel-cache", globalConfig.getApikey(), path.sep);
11
11
  const dbpath = baseDir + "chatHistory.db";
12
- if (fs.existsSync(dbpath)) {
13
- fs.unlinkSync(dbpath);
14
- }
12
+ // if (fs.existsSync(dbpath)) {
13
+ // fs.unlinkSync(dbpath);
14
+ // }
15
15
  rdb = nedb(dbpath);
16
16
  }
17
17
  }
@@ -9,7 +9,7 @@ function initDb() {
9
9
  const baseDir = path.join(os.homedir(), path.sep, ".wechaty", "wechaty-panel-cache", globalConfig.getApikey(), path.sep);
10
10
  const dbpath = baseDir + "room.db";
11
11
  if (fs.existsSync(dbpath)) {
12
- fs.unlinkSync(dbpath);
12
+ // fs.unlinkSync(dbpath);
13
13
  }
14
14
  rdb = nedb(dbpath);
15
15
  }
@@ -3,7 +3,7 @@
3
3
  */
4
4
  export const packageJson = {
5
5
  "name": "wechaty-web-panel",
6
- "version": "1.6.69",
6
+ "version": "1.6.70",
7
7
  "description": "智能微秘书插件",
8
8
  "exports": {
9
9
  ".": {
@@ -75,7 +75,7 @@ export const packageJson = {
75
75
  "dependencies": {
76
76
  "@dqbd/tiktoken": "^1.0.2",
77
77
  "ali-oss": "^6.21.0",
78
- "axios": "^1.6.6",
78
+ "axios": "^1.7.4",
79
79
  "baidu-aip-sdk": "^4.16.10",
80
80
  "dayjs": "^1.11.7",
81
81
  "eventsource-parser": "^1.0.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wechaty-web-panel",
3
- "version": "1.6.69",
3
+ "version": "1.6.70",
4
4
  "description": "智能微秘书插件",
5
5
  "exports": {
6
6
  ".": {
@@ -72,7 +72,7 @@
72
72
  "dependencies": {
73
73
  "@dqbd/tiktoken": "^1.0.2",
74
74
  "ali-oss": "^6.21.0",
75
- "axios": "^1.6.6",
75
+ "axios": "^1.7.4",
76
76
  "baidu-aip-sdk": "^4.16.10",
77
77
  "dayjs": "^1.11.7",
78
78
  "eventsource-parser": "^1.0.0",