mirror of
https://github.com/NeteaseCloudMusicApiEnhanced/api-enhanced.git
synced 2025-12-09 01:03:10 +00:00
fix: update music search keyword and test case ID
- Changed the default search keyword in the API documentation from "这么可爱真是抱歉" to "妖精小姐的魔法邀约". - Updated the test case for fetching song URL to use the correct song ID (from 1969519579 to 2756058128).
This commit is contained in:
parent
97980b5ac3
commit
398f410109
12
package.json
12
package.json
@ -3,6 +3,7 @@
|
|||||||
"version": "4.29.12",
|
"version": "4.29.12",
|
||||||
"description": "为停更的网易云音乐 NodeJs API 提供持续的维护!",
|
"description": "为停更的网易云音乐 NodeJs API 提供持续的维护!",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"dev": "nodemon app.js",
|
||||||
"start": "node app.js",
|
"start": "node app.js",
|
||||||
"test": "mocha -r intelli-espower-loader -t 60000 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}\"",
|
||||||
@ -66,7 +67,7 @@
|
|||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@unblockneteasemusic/server": "^0.28.0",
|
"@unblockneteasemusic/server": "^0.28.0",
|
||||||
"axios": "^1.12.2",
|
"axios": "^1.13.1",
|
||||||
"crypto-js": "^4.2.0",
|
"crypto-js": "^4.2.0",
|
||||||
"dotenv": "^17.2.3",
|
"dotenv": "^17.2.3",
|
||||||
"express": "^5.1.0",
|
"express": "^5.1.0",
|
||||||
@ -82,13 +83,13 @@
|
|||||||
"yargs": "^18.0.0"
|
"yargs": "^18.0.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/express": "^5.0.4",
|
"@types/express": "^5.0.5",
|
||||||
"@types/express-fileupload": "^1.5.1",
|
"@types/express-fileupload": "^1.5.1",
|
||||||
"@types/mocha": "^10.0.10",
|
"@types/mocha": "^10.0.10",
|
||||||
"@types/node": "24.9.1",
|
"@types/node": "24.9.1",
|
||||||
"@typescript-eslint/eslint-plugin": "5.62.0",
|
"@typescript-eslint/eslint-plugin": "8.46.2",
|
||||||
"@typescript-eslint/parser": "5.62.0",
|
"@typescript-eslint/parser": "8.46.2",
|
||||||
"eslint": "8.7.0",
|
"eslint": "9.39.0",
|
||||||
"eslint-config-prettier": "10.1.8",
|
"eslint-config-prettier": "10.1.8",
|
||||||
"eslint-plugin-html": "8.1.3",
|
"eslint-plugin-html": "8.1.3",
|
||||||
"eslint-plugin-prettier": "5.5.4",
|
"eslint-plugin-prettier": "5.5.4",
|
||||||
@ -96,6 +97,7 @@
|
|||||||
"intelli-espower-loader": "1.1.0",
|
"intelli-espower-loader": "1.1.0",
|
||||||
"lint-staged": "16.2.6",
|
"lint-staged": "16.2.6",
|
||||||
"mocha": "11.7.4",
|
"mocha": "11.7.4",
|
||||||
|
"nodemon": "^3.1.10",
|
||||||
"pkg": "^5.8.1",
|
"pkg": "^5.8.1",
|
||||||
"power-assert": "1.6.1",
|
"power-assert": "1.6.1",
|
||||||
"prettier": "3.6.2",
|
"prettier": "3.6.2",
|
||||||
|
|||||||
758
pnpm-lock.yaml
generated
758
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@ -60,7 +60,7 @@
|
|||||||
<section class="block">
|
<section class="block">
|
||||||
<h2>常用接口</h2>
|
<h2>常用接口</h2>
|
||||||
<ul class="links">
|
<ul class="links">
|
||||||
<li><a href="/search?keywords=这么可爱真是抱歉">搜索音乐: <code>GET /search</code></a></li>
|
<li><a href="/search?keywords=妖精小姐的魔法邀约">搜索音乐: <code>GET /search</code></a></li>
|
||||||
<li><a href="/song/detail?ids=2756058128">获取音乐详情: <code>GET /song/detail</code></a></li>
|
<li><a href="/song/detail?ids=2756058128">获取音乐详情: <code>GET /song/detail</code></a></li>
|
||||||
<li><a href="/comment/music?id=2756058128&limit=1">获取音乐评论: <code>GET /comment/music</code></a></li>
|
<li><a href="/comment/music?id=2756058128&limit=1">获取音乐评论: <code>GET /comment/music</code></a></li>
|
||||||
<li><a href="/song/url/v1?id=2756058128&level=exhigh">获取音乐播放链接: <code>GET /song/url/v1</code></a></li>
|
<li><a href="/song/url/v1?id=2756058128&level=exhigh">获取音乐播放链接: <code>GET /song/url/v1</code></a></li>
|
||||||
@ -71,7 +71,7 @@
|
|||||||
<h2>调试部分</h2>
|
<h2>调试部分</h2>
|
||||||
<pre><code>curl -s {origin}/inner/version
|
<pre><code>curl -s {origin}/inner/version
|
||||||
curl -s {origin}/search?keywords=网易云</code></pre>
|
curl -s {origin}/search?keywords=网易云</code></pre>
|
||||||
<p style="margin-top:10px"> · <a href="/api.html">交互式调试</a> · <a href="/qrlogin.html">二维码登录示例</a> · <a href="/unblock_test.html">解灰测试</a></p> · <a href="/audio_match_demo/index.html">听歌识曲 Demo</a></p> · <a href="/unblock_test.html">云盘上传</a></p> · <a href="/playlist_import.html">歌单导入</a></p> · <a href="/eapi_decrypt.html">EAPI 解密</p>
|
<p style="margin-top:10px"> · <a href="/api.html">交互式调试</a> · <a href="/qrlogin.html">二维码登录示例</a> · <a href="/unblock_test.html">解灰测试</a></p> · <a href="/audio_match_demo/index.html">听歌识曲 Demo</a></p> · <a href="/cloud.html">云盘上传</a></p> · <a href="/playlist_import.html">歌单导入</a></p> · <a href="/eapi_decrypt.html">EAPI 解密</p>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<footer class="site-footer">
|
<footer class="site-footer">
|
||||||
|
|||||||
@ -4,7 +4,7 @@ const host = global.host || 'http://localhost:3000'
|
|||||||
describe('测试获取歌曲是否正常', () => {
|
describe('测试获取歌曲是否正常', () => {
|
||||||
it('歌曲的 url 不应该为空', (done) => {
|
it('歌曲的 url 不应该为空', (done) => {
|
||||||
const qs = {
|
const qs = {
|
||||||
id: 1969519579,
|
id: 2756058128,
|
||||||
br: 999000,
|
br: 999000,
|
||||||
realIP: global.cnIp,
|
realIP: global.cnIp,
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user