mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-17 13:48:02 +00:00
fix: 云盘无法上传的bug
This commit is contained in:
parent
dd65c67568
commit
aa418cd0d7
34 changed files with 445 additions and 19 deletions
|
|
@ -1,11 +1,7 @@
|
|||
// 歌曲链接
|
||||
|
||||
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'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue