wx2tg-puppet 2.1.7 → 2.1.8

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.
@@ -190,9 +190,9 @@ const say = (content, toWxid, ats) => __awaiter(void 0, void 0, void 0, function
190
190
  }
191
191
  else if (content instanceof VOICE_1.Voice) {
192
192
  if (content.type === 2) {
193
- const fileName = new Date().getDate();
193
+ const fileName = new Date().getTime();
194
194
  const fb = file_box_1.FileBox.fromBase64(content.voiceBase64);
195
- yield fb.toFile(fileName + '.mp3');
195
+ yield fb.toFile(fileName + '.mp3', true);
196
196
  yield new audioUtil_1.SilkToMp3Converter().convertToSilk(fileName + '.mp3', fileName + '.silk');
197
197
  const fbResult = file_box_1.FileBox.fromFile(fileName + '.silk');
198
198
  content.voiceBase64 = yield fbResult.toBase64();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wx2tg-puppet",
3
- "version": "2.1.7",
3
+ "version": "2.1.8",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [