koishi-plugin-best-cave 2.6.7 → 2.6.9
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/lib/index.js +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -527,7 +527,7 @@ async function processMessageElements(sourceElements, newId, session, config, lo
|
|
|
527
527
|
if (fileIdentifier.startsWith("http")) {
|
|
528
528
|
const ext = path2.extname(el.attrs.file || "") || defaultExtMap[type];
|
|
529
529
|
const currentMediaIndex = ++mediaIndex;
|
|
530
|
-
const fileName = `${newId}_${
|
|
530
|
+
const fileName = `${newId}-${currentMediaIndex}_${session.channelId}-${session.userId}_${creationTime.getTime()}${ext}`;
|
|
531
531
|
mediaToSave.push({ sourceUrl: fileIdentifier, fileName });
|
|
532
532
|
fileIdentifier = fileName;
|
|
533
533
|
}
|