mirror of
https://gitlab.com/Binaryify/neteasecloudmusicapi.git
synced 2025-05-23 22:37:41 +08:00
参数补充
This commit is contained in:
parent
88056db7bd
commit
ae032b72a4
@ -4,7 +4,7 @@
|
|||||||
"description": "网易云音乐 NodeJS 版 API",
|
"description": "网易云音乐 NodeJS 版 API",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "node app.js",
|
"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": "eslint \"**/*.{js,ts}\"",
|
||||||
"lint-fix": "eslint --fix \"**/*.{js,ts}\"",
|
"lint-fix": "eslint --fix \"**/*.{js,ts}\"",
|
||||||
"prepare": "husky install",
|
"prepare": "husky install",
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
const encrypt = require('./crypto')
|
const encrypt = require('./crypto')
|
||||||
|
const crypto = require('crypto')
|
||||||
const axios = require('axios')
|
const axios = require('axios')
|
||||||
const PacProxyAgent = require('pac-proxy-agent')
|
const PacProxyAgent = require('pac-proxy-agent')
|
||||||
const http = require('http')
|
const http = require('http')
|
||||||
@ -60,7 +61,8 @@ const createRequest = (method, url, data = {}, options) => {
|
|||||||
options.cookie = {
|
options.cookie = {
|
||||||
...options.cookie,
|
...options.cookie,
|
||||||
__remember_me: true,
|
__remember_me: true,
|
||||||
NMTID: 'xxx',
|
NMTID: crypto.randomBytes(16).toString('hex'),
|
||||||
|
_ntes_nuid: crypto.randomBytes(16).toString('hex'),
|
||||||
}
|
}
|
||||||
if (!options.cookie.MUSIC_U) {
|
if (!options.cookie.MUSIC_U) {
|
||||||
// 游客
|
// 游客
|
||||||
|
Loading…
x
Reference in New Issue
Block a user