From 0954d6f1caad42906401ea8830abb66359a1306d Mon Sep 17 00:00:00 2001 From: zhiyu1998 <542716863@qq.com> Date: Thu, 30 May 2024 22:03:45 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix:=20=E4=BF=AE=E5=A4=8Dnetease?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E8=A7=A3=E6=9E=90=E6=AD=8C=E6=9B=B2=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/bodian.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/bodian.js b/utils/bodian.js index 65b2f1f..e15b5ff 100644 --- a/utils/bodian.js +++ b/utils/bodian.js @@ -1,5 +1,5 @@ import axios from "axios"; -import { downloadMp3, generateRandomStr } from "./common.js"; +import { downloadAudio, generateRandomStr } from "./common.js"; /** * 获取音频 @@ -28,7 +28,7 @@ async function getBodianAudio(id, path) { .then(async resp => { const respJson = resp.data; const audioUrl = respJson.data.audioUrl; - await downloadMp3(audioUrl, path) + await downloadAudio(audioUrl, path) .catch(err => { console.error(`下载音乐失败,错误信息为: ${err.message}`); });