From e3a1c041b6d32ed23b128bdd3ba9e20b545798b1 Mon Sep 17 00:00:00 2001 From: MoeFurina Date: Tue, 9 Jun 2026 00:09:48 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=B8=B8=E5=AE=A2?= =?UTF-8?q?=E7=99=BB=E9=99=86=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/register_anonimous.js | 4 +++- package.json | 4 ++-- pnpm-lock.yaml | 36 +++++++++++++++++++++--------------- 3 files changed, 26 insertions(+), 18 deletions(-) diff --git a/module/register_anonimous.js b/module/register_anonimous.js index fb510cd..ae76ad9 100644 --- a/module/register_anonimous.js +++ b/module/register_anonimous.js @@ -1,3 +1,5 @@ +// 获取游客cookie + const CryptoJS = require('crypto-js') const path = require('path') const fs = require('fs') @@ -37,7 +39,7 @@ module.exports = async (query, request) => { let result = await request( `/api/register/anonimous`, data, - createOption(query, 'weapi'), + createOption(query, 'xeapi'), ) if (result.body.code === 200) { result = { diff --git a/package.json b/package.json index 5ff2fce..0325822 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@neteasecloudmusicapienhanced/api", - "version": "4.35.0", + "version": "4.35.1", "description": "全网最全的网易云音乐API接口 || A revival project for NeteaseCloudMusicApi Node.js Services (Half Refactor & Enhanced) || 网易云音乐 API 备份 + 增强 || 本项目自原版v4.28.0版本后开始自行维护", "scripts": { "dev": "nodemon app.js", @@ -80,7 +80,7 @@ "express": "^5.2.1", "express-fileupload": "^1.5.2", "gzip": "^0.1.0", - "music-metadata": "^11.12.3", + "music-metadata": "^11.13.0", "node-forge": "^1.4.0", "pac-proxy-agent": "^7.2.0", "qrcode": "^1.5.4", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b0fbfd3..98f628c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -30,8 +30,8 @@ importers: specifier: ^0.1.0 version: 0.1.0 music-metadata: - specifier: ^11.12.3 - version: 11.12.3 + specifier: ^11.13.0 + version: 11.13.0 node-forge: specifier: ^1.4.0 version: 1.4.0 @@ -1636,6 +1636,10 @@ packages: resolution: {integrity: sha512-aisnrDP4GNe06UcKFnV5bfMNPBUw4jsLGaWwWfnH3v02GnBuXX2MCVn5RbrWo0j3pczUilYblq7fQ7Nw2t5XKw==} engines: {node: '>= 0.8'} + media-typer@2.0.0: + resolution: {integrity: sha512-kOy3OxT2HH39N70UnKgu4NWDZjLOz8W/mfyvniHjRH/DrL3f2pOfvWQ4p60offbbtDAnXWp0v9LfMIqMec269Q==} + engines: {node: '>=18'} + merge-descriptors@1.0.3: resolution: {integrity: sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ==} @@ -1729,8 +1733,8 @@ packages: multistream@4.1.0: resolution: {integrity: sha512-J1XDiAmmNpRCBfIWJv+n0ymC4ABcf/Pl+5YvC5B/D2f/2+8PtHvCNxMPKiQcZyi922Hq69J2YOpb1pTywfifyw==} - music-metadata@11.12.3: - resolution: {integrity: sha512-n6hSTZkuD59qWgHh6IP5dtDlDZQXoxk/bcA85Jywg8Z1iFrlNgl2+GTFgjZyn52W5UgQpV42V4XqrQZZAMbZTQ==} + music-metadata@11.13.0: + resolution: {integrity: sha512-uXRaov9dfjSpQufXIU7sMxVZnh+FilCQv2mXn+K5EJ/decP3dTWrgvPYa5r6MtRbieNSCE708Da4J0u1UGfQIw==} engines: {node: '>=18'} napi-build-utils@1.0.2: @@ -2149,8 +2153,8 @@ packages: secure-json-parse@2.7.0: resolution: {integrity: sha512-6aU+Rwsezw7VR8/nyvKTx8QpWH9FrcYiXXlqC4z5d5XQBDRqtbfsRjnwGyqbi3gddNtWHuEk9OANUotL26qKUw==} - semver@7.8.2: - resolution: {integrity: sha512-c8jsqUZm3omBOI66G90z1Dyw5z622G8oLG+omfsHBJf3CWQTlOcwOjvOG6wtiNfW6anKm/eA39LMwMtMez2TiQ==} + semver@7.8.3: + resolution: {integrity: sha512-wnilbGyMxzbY7dNOl7jpKbLSjcfeweJWU5j4+u5qW+6/wuGD9KzIGOyZnQVSBM9E7DtWaaH3CyHkppYrKYoxwg==} engines: {node: '>=10'} hasBin: true @@ -2919,7 +2923,7 @@ snapshots: '@typescript-eslint/visitor-keys': 8.60.1 debug: 4.4.3 minimatch: 10.2.5 - semver: 7.8.2 + semver: 7.8.3 tinyglobby: 0.2.17 ts-api-utils: 2.5.0(typescript@5.9.3) typescript: 5.9.3 @@ -4428,6 +4432,8 @@ snapshots: media-typer@1.1.0: {} + media-typer@2.0.0: {} + merge-descriptors@1.0.3: {} merge-descriptors@2.0.0: {} @@ -4520,14 +4526,14 @@ snapshots: once: 1.4.0 readable-stream: 3.6.2 - music-metadata@11.12.3: + music-metadata@11.13.0: dependencies: '@borewit/text-codec': 0.2.2 '@tokenizer/token': 0.3.0 - content-type: 1.0.5 + content-type: 2.0.0 debug: 4.4.3 file-type: 21.3.4 - media-typer: 1.1.0 + media-typer: 2.0.0 strtok3: 10.3.5 token-types: 6.1.2 uint8array-extras: 1.5.0 @@ -4549,7 +4555,7 @@ snapshots: node-abi@3.92.0: dependencies: - semver: 7.8.2 + semver: 7.8.3 node-fetch@2.7.0: dependencies: @@ -4569,7 +4575,7 @@ snapshots: ignore-by-default: 1.0.1 minimatch: 10.2.5 pstree.remy: 1.1.8 - semver: 7.8.2 + semver: 7.8.3 simple-update-notifier: 2.0.0 supports-color: 5.5.0 touch: 3.1.1 @@ -4744,7 +4750,7 @@ snapshots: https-proxy-agent: 5.0.1 node-fetch: 2.7.0 progress: 2.0.3 - semver: 7.8.2 + semver: 7.8.3 tar-fs: 2.1.4 yargs: 16.2.0 transitivePeerDependencies: @@ -5038,7 +5044,7 @@ snapshots: secure-json-parse@2.7.0: {} - semver@7.8.2: {} + semver@7.8.3: {} send@0.19.2: dependencies: @@ -5168,7 +5174,7 @@ snapshots: simple-update-notifier@2.0.0: dependencies: - semver: 7.8.2 + semver: 7.8.3 slash@3.0.0: {}