node-easywechat 2.13.1 → 2.13.2

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,6 +1,10 @@
1
1
  # CHANGELOG
2
2
 
3
3
 
4
+ ## v2.13.2 (2025-03-13)
5
+
6
+ - Fix: 自动回复视频消息的格式错误问题
7
+
4
8
  ## v2.13.1 (2023-11-11)
5
9
 
6
10
  - Fix: 更新依赖包
package/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  **注:2.x分支针对 EasyWechat 的 5.x版本(由于4.x与5.x的结构基本一致,就不升级大版本了)。**
8
8
 
9
- 若您需要 EasyWechat 的 5.x版本,请切换到 [3.x](https://github.com/hpyer/node-easywechat/tree/3.x) 分支。
9
+ 若您需要 EasyWechat 的 6.x版本,请切换到 [3.x](https://github.com/hpyer/node-easywechat/tree/3.x) 分支。
10
10
 
11
11
  [EasyWechat](https://github.com/w7corp/easywechat) 是一个由 `安正超` 大神用 PHP 开发的开源的微信非官方 SDK(现由微擎团队团队维护)。其功能强大,使用方便,个人一直很喜欢,所以近日将其在 Node.js 上实现。本人会尽量还原其配置项以及接口的调用方式,但毕竟语言环境不同,具体的实现方式会有些许差别,还请各位开发者见谅。
12
12
 
@@ -10,23 +10,17 @@ class Video extends Media_1.Media {
10
10
  'title',
11
11
  'description',
12
12
  'media_id',
13
- 'thumb_media_id',
14
13
  ];
15
14
  }
16
15
  toXmlArray() {
17
- let music = {
18
- Music: {
16
+ let video = {
17
+ Video: {
18
+ MediaId: this.get('media_id'),
19
19
  Title: this.get('title'),
20
20
  Description: this.get('description'),
21
- MusicUrl: this.get('url'),
22
- HQMusicUrl: this.get('hq_url'),
23
21
  }
24
22
  };
25
- let thumbMediaId = this.get('thumb_media_id');
26
- if (thumbMediaId) {
27
- music['Music']['ThumbMediaId'] = thumbMediaId;
28
- }
29
- return music;
23
+ return video;
30
24
  }
31
25
  }
32
26
  exports.Video = Video;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-easywechat",
3
- "version": "2.13.1",
3
+ "version": "2.13.2",
4
4
  "description": "EasyWechat SDK for Node.js (NOT OFFICIAL)",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {