diff --git a/utils/yunzai-util.js b/utils/yunzai-util.js index b059872..3267c1e 100644 --- a/utils/yunzai-util.js +++ b/utils/yunzai-util.js @@ -84,7 +84,7 @@ export async function getGroupFileUrl(e, count = 10) { }; } } else if (cleanPath.startsWith('file:///')) { - cleanPath.replace('file:///', '') + cleanPath = cleanPath.replace('file:///', '') } return { cleanPath, file_id };