mirror of
https://github.com/qier222/YesPlayMusic.git
synced 2024-11-26 02:09:51 +08:00
32 lines
658 B
JavaScript
32 lines
658 B
JavaScript
const {
|
|
login_cellphone,
|
|
user_cloud,
|
|
album_sublist,
|
|
song_url,
|
|
} = require('../main')
|
|
async function test() {
|
|
try {
|
|
const result = await login_cellphone({
|
|
phone: '手机号',
|
|
password: '密码',
|
|
})
|
|
console.log(result)
|
|
const result2 = await user_cloud({
|
|
cookie: result.body.cookie,
|
|
})
|
|
console.log(result2.body)
|
|
const result3 = await album_sublist({
|
|
cookie: result.body.cookie,
|
|
})
|
|
console.log(result3.body)
|
|
const result4 = await song_url({
|
|
cookie: result.body.cookie,
|
|
id: 33894312,
|
|
})
|
|
console.log(result4.body)
|
|
} catch (error) {
|
|
console.log(error)
|
|
}
|
|
}
|
|
test()
|