mirror of
https://github.com/Jerryplusy/rc-plugin.git
synced 2025-10-14 08:09:19 +00:00
🦄 reactor: 优化文件名
This commit is contained in:
parent
1671ab4cd7
commit
f4e4f594a1
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user