参数补充

This commit is contained in:
binaryify 2022-09-13 13:50:06 +08:00
parent 88056db7bd
commit ae032b72a4
2 changed files with 4 additions and 2 deletions

View File

@ -4,7 +4,7 @@
"description": "网易云音乐 NodeJS 版 API",
"scripts": {
"start": "node app.js",
"test": "mocha -r intelli-espower-loader -t 30000 server.test.js main.test.js --exit",
"test": "mocha -r intelli-espower-loader -t 60000 server.test.js main.test.js --exit",
"lint": "eslint \"**/*.{js,ts}\"",
"lint-fix": "eslint --fix \"**/*.{js,ts}\"",
"prepare": "husky install",

View File

@ -1,4 +1,5 @@
const encrypt = require('./crypto')
const crypto = require('crypto')
const axios = require('axios')
const PacProxyAgent = require('pac-proxy-agent')
const http = require('http')
@ -60,7 +61,8 @@ const createRequest = (method, url, data = {}, options) => {
options.cookie = {
...options.cookie,
__remember_me: true,
NMTID: 'xxx',
NMTID: crypto.randomBytes(16).toString('hex'),
_ntes_nuid: crypto.randomBytes(16).toString('hex'),
}
if (!options.cookie.MUSIC_U) {
// 游客