mirror of
https://github.com/NeteaseCloudMusicApiEnhanced/api-enhanced.git
synced 2026-10-20 14:41:23 +08:00
服务启动刷新游客cookie
This commit is contained in:
@@ -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