mirror of
https://github.com/Jerryplusy/rc-plugin.git
synced 2025-10-14 16:19:18 +00:00
🐞 fix: 修复 bodian 无法发送的问题
This commit is contained in:
parent
df37390108
commit
7ae76b6143
@ -21,18 +21,14 @@ async function getBodianAudio(id, path) {
|
||||
"Cache-Control": "no-cache",
|
||||
channel: "appstore",
|
||||
};
|
||||
return await axios
|
||||
.get(API, {
|
||||
headers,
|
||||
})
|
||||
.then(async resp => {
|
||||
const respJson = resp.data;
|
||||
const audioUrl = respJson.data.audioUrl;
|
||||
await downloadAudio(audioUrl, path)
|
||||
.catch(err => {
|
||||
console.error(`下载音乐失败,错误信息为: ${err.message}`);
|
||||
});
|
||||
return respJson;
|
||||
const resp = await axios.get(API, {
|
||||
headers,
|
||||
});
|
||||
const respJson = resp.data;
|
||||
const audioUrl = respJson.data.audioUrl;
|
||||
return await downloadAudio(audioUrl, path)
|
||||
.catch(err => {
|
||||
console.error(`下载音乐失败,错误信息为: ${ err.message }`);
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user