mirror of
https://gitlab.com/Binaryify/neteasecloudmusicapi.git
synced 2025-07-07 15:12:06 +08:00
修复 song/url 接口提示网络拥堵的问题,单元测试修复
This commit is contained in:
@ -1,4 +1,9 @@
|
||||
# 更新日志
|
||||
### 4.8.2 | 2022.09.13
|
||||
- 修复 song/url 接口提示网络拥堵的问题
|
||||
|
||||
- 单元测试修复
|
||||
|
||||
### 4.8.1 | 2022.09.12
|
||||
- 解决网络拥堵提示问题
|
||||
|
||||
|
@ -2,8 +2,8 @@
|
||||
|
||||
const crypto = require('crypto')
|
||||
module.exports = (query, request) => {
|
||||
if (!('MUSIC_U' in query.cookie))
|
||||
query.cookie._ntes_nuid = crypto.randomBytes(16).toString('hex')
|
||||
// if (!('MUSIC_U' in query.cookie))
|
||||
// query.cookie._ntes_nuid = crypto.randomBytes(16).toString('hex')
|
||||
query.cookie.os = 'pc'
|
||||
const data = {
|
||||
ids: '[' + query.id + ']',
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "NeteaseCloudMusicApi",
|
||||
"version": "4.8.1",
|
||||
"version": "4.8.2",
|
||||
"description": "网易云音乐 NodeJS 版 API",
|
||||
"scripts": {
|
||||
"start": "node app.js",
|
||||
|
@ -6,6 +6,7 @@ describe('测试获取歌手专辑列表是否正常', () => {
|
||||
it('数据的 code 应该为200', (done) => {
|
||||
const qs = {
|
||||
id: 32311,
|
||||
realIP: '116.25.146.177',
|
||||
}
|
||||
|
||||
axios
|
||||
|
@ -6,6 +6,7 @@ describe('测试获取评论是否正常', () => {
|
||||
it('数据的 code 应该为200', (done) => {
|
||||
const qs = {
|
||||
id: 32311,
|
||||
realIP: '116.25.146.177',
|
||||
}
|
||||
|
||||
axios
|
||||
|
@ -6,6 +6,7 @@ describe('测试获取歌词是否正常', () => {
|
||||
it('数据应该有 lrc 字段', (done) => {
|
||||
const qs = {
|
||||
id: 347230,
|
||||
realIP: '116.25.146.177',
|
||||
}
|
||||
|
||||
axios
|
||||
|
@ -7,6 +7,7 @@ describe('测试搜索是否正常', () => {
|
||||
const qs = {
|
||||
keywords: '海阔天空',
|
||||
type: 1,
|
||||
realIP: '116.25.146.177',
|
||||
}
|
||||
axios
|
||||
.get(`${host}/search`, {
|
||||
|
Reference in New Issue
Block a user