mirror of
https://gitlab.com/Binaryify/neteasecloudmusicapi.git
synced 2025-07-06 14:52:07 +08:00
modify initial parameter for artist list
This commit is contained in:
@ -22,14 +22,14 @@ module.exports = (req, res, createWebAPIRequest, request) => {
|
|||||||
// 其他女歌手 4002
|
// 其他女歌手 4002
|
||||||
// 其他组合/乐队 4003
|
// 其他组合/乐队 4003
|
||||||
|
|
||||||
// initial 取值A为65,B为66...以此类推
|
// initial 取值a-z/A-Z
|
||||||
|
|
||||||
const data = {
|
const data = {
|
||||||
categoryCode: req.query.cat || "1001",
|
categoryCode: req.query.cat || "1001",
|
||||||
offset: req.query.offset || 0,
|
offset: req.query.offset || 0,
|
||||||
total: req.query.total ? "true" : "false",
|
total: req.query.total ? "true" : "false",
|
||||||
limit: req.query.limit || 30,
|
limit: req.query.limit || 30,
|
||||||
initial: req.query.initial || ""
|
initial: (req.query.initial || "").toUpperCase().charCodeAt() || ""
|
||||||
};
|
};
|
||||||
createWebAPIRequest(
|
createWebAPIRequest(
|
||||||
"music.163.com",
|
"music.163.com",
|
||||||
|
Reference in New Issue
Block a user