mirror of
https://gitlab.com/Binaryify/neteasecloudmusicapi.git
synced 2025-07-03 14:52:09 +08:00
问题修复
This commit is contained in:
parent
6589094d99
commit
1d93513570
@ -5,6 +5,7 @@ const crypto = require('crypto')
|
||||
module.exports = async (query, request) => {
|
||||
query.cookie.os = 'iOS'
|
||||
const data = {
|
||||
/* A base64 encoded string. */
|
||||
username:
|
||||
'MzEwMjcwYmY0Y2Y0ODcwMzU0ZDFkZmIxMmMzMGYyMTkgVlBaanMwNmtrb1BYMGxOVzVUMUJ3Zz09',
|
||||
}
|
||||
|
@ -55,8 +55,10 @@ const createRequest = (method, url, data, options) => {
|
||||
if (typeof options.cookie === 'object') {
|
||||
if (!options.cookie.MUSIC_U) {
|
||||
// 匿名
|
||||
if (!options.cookie.MUSIC_A) {
|
||||
options.cookie.MUSIC_A = config.anonymous_token
|
||||
}
|
||||
}
|
||||
headers['Cookie'] = Object.keys(options.cookie)
|
||||
.map(
|
||||
(key) =>
|
||||
|
Loading…
x
Reference in New Issue
Block a user