mirror of
https://gitlab.com/Binaryify/neteasecloudmusicapi.git
synced 2025-07-07 03:42:07 +08:00
服务启动刷新游客cookie
This commit is contained in:
2
main.js
2
main.js
@ -11,7 +11,7 @@ fs.readdirSync(path.join(__dirname, 'module'))
|
||||
if (!file.endsWith('.js')) return
|
||||
let fileModule = require(path.join(__dirname, 'module', file))
|
||||
let fn = file.split('.').shift() || ''
|
||||
obj[fn] = function (data) {
|
||||
obj[fn] = function (data = {}) {
|
||||
if (typeof data.cookie === 'string') {
|
||||
data.cookie = cookieToJson(data.cookie)
|
||||
}
|
||||
|
Reference in New Issue
Block a user