mirror of
https://github.com/NeteaseCloudMusicApiEnhanced/api-enhanced.git
synced 2026-10-20 14:41:23 +08:00
相似歌手,首页-发现-圆形图标入口列表接口增加匿名token #877,#988,修复音乐 url接口POST方式手动传入cookie报错问题 #1005
This commit is contained in:
+4
-1
@@ -1,8 +1,11 @@
|
||||
// 歌曲链接
|
||||
|
||||
const crypto = require('crypto')
|
||||
|
||||
const { cookieToJson } = require('../util/index')
|
||||
module.exports = (query, request) => {
|
||||
if (typeof query.cookie === 'string') {
|
||||
query.cookie = cookieToJson(query.cookie)
|
||||
}
|
||||
if (!('MUSIC_U' in query.cookie))
|
||||
query.cookie._ntes_nuid = crypto.randomBytes(16).toString('hex')
|
||||
query.cookie.os = 'pc'
|
||||
|
||||
Reference in New Issue
Block a user