mirror of
https://gitlab.com/Binaryify/neteasecloudmusicapi.git
synced 2025-07-06 23:22:06 +08:00
@ -5,7 +5,7 @@ module.exports = (query, request) => {
|
||||
ctcode: query.ctcode || '86',
|
||||
cellphone: query.phone,
|
||||
}
|
||||
return request('POST', `https://music.163.com/weapi/sms/captcha/sent`, data, {
|
||||
return request('POST', `https://music.163.com/api/sms/captcha/sent`, data, {
|
||||
crypto: 'weapi',
|
||||
cookie: query.cookie,
|
||||
proxy: query.proxy,
|
||||
|
@ -8,6 +8,7 @@ module.exports = (query, request) => {
|
||||
phone: query.phone,
|
||||
password: crypto.createHash('md5').update(query.password).digest('hex'),
|
||||
nickname: query.nickname,
|
||||
countrycode: query.countrycode || '86',
|
||||
}
|
||||
return request('POST', `https://music.163.com/api/register/cellphone`, data, {
|
||||
crypto: 'weapi',
|
||||
|
@ -3,8 +3,7 @@
|
||||
module.exports = (query, request) => {
|
||||
query.ids = query.ids.split(/\s*,\s*/)
|
||||
const data = {
|
||||
c: '[' + query.ids.map((id) => '{"id":' + id + '}').join(',') + ']',
|
||||
ids: '[' + query.ids.join(',') + ']',
|
||||
c: '[' + query.ids.map((id) => '{"id":' + id + '}').join(',') + ']'
|
||||
}
|
||||
return request('POST', `https://music.163.com/weapi/v3/song/detail`, data, {
|
||||
crypto: 'weapi',
|
||||
|
21
module/user_bindingcellphone.js
Normal file
21
module/user_bindingcellphone.js
Normal file
@ -0,0 +1,21 @@
|
||||
module.exports = (query, request) => {
|
||||
const data = {
|
||||
phone: query.phone,
|
||||
countrycode: query.countrycode || '86',
|
||||
captcha: query.captcha,
|
||||
password: query.password
|
||||
? crypto.createHash('md5').update(query.password).digest('hex')
|
||||
: '',
|
||||
}
|
||||
return request(
|
||||
'POST',
|
||||
`https://music.163.com/api/user/bindingCellphone`,
|
||||
data,
|
||||
{
|
||||
crypto: 'weapi',
|
||||
cookie: query.cookie,
|
||||
proxy: query.proxy,
|
||||
realIP: query.realIP,
|
||||
},
|
||||
)
|
||||
}
|
@ -3,8 +3,10 @@
|
||||
module.exports = (query, request) => {
|
||||
const data = {
|
||||
userId: query.uid,
|
||||
time: query.lasttime || -1,
|
||||
time: '0',
|
||||
limit: query.limit || 30,
|
||||
offset: query.offset || 0,
|
||||
getcounts: 'true',
|
||||
}
|
||||
return request(
|
||||
'POST',
|
||||
|
Reference in New Issue
Block a user