🦄 reactor: 优化文件名

This commit is contained in:
秋刀鱼 2024-11-13 16:01:45 +08:00
parent 1671ab4cd7
commit f4e4f594a1

View File

@ -298,7 +298,7 @@ export class songRequest extends plugin {
const title = msg.message[0].data.match(/"title":"([^"]+)"/)[1] const title = msg.message[0].data.match(/"title":"([^"]+)"/)[1]
const desc = msg.message[0].data.match(/"desc":"([^"]+)"/)[1] const desc = msg.message[0].data.match(/"desc":"([^"]+)"/)[1]
if (id === "") return if (id === "") return
let path = this.getCurDownloadPath(e) + '/' + title + '-' + desc + '.' + FileSuffix let path = this.getCurDownloadPath(e) + '/' + desc + '-' + title + '.' + FileSuffix
try { try {
// 上传群文件 // 上传群文件
await this.uploadGroupFile(e, path); await this.uploadGroupFile(e, path);