Merge pull request #1837 from WooMai/fix-song_url

Fix: 使用 Node 调用 song_url 时未正确处理 number 类型
This commit is contained in:
binaryify 2023-11-10 21:24:41 +08:00 committed by GitHub
commit 4755df842e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,7 @@
// 歌曲链接
module.exports = async (query, request) => {
query.cookie.os = 'pc'
const ids = query.id.split(',')
const ids = String(query.id).split(',')
const data = {
ids: JSON.stringify(ids),
br: parseInt(query.br || 999000),