mirror of
https://github.com/NeteaseCloudMusicApiEnhanced/api-enhanced.git
synced 2026-10-20 14:41:23 +08:00
代码格式化
This commit is contained in:
+7
-7
@@ -4,13 +4,13 @@ module.exports = {
|
||||
return val === 'true' || val == '1'
|
||||
},
|
||||
cookieToJson(cookie) {
|
||||
if (!cookie ) return {}
|
||||
let cookieArr = cookie.split(';');
|
||||
let obj = {}
|
||||
if (!cookie) return {}
|
||||
let cookieArr = cookie.split(';')
|
||||
let obj = {}
|
||||
cookieArr.forEach((i) => {
|
||||
let arr = i.split('=');
|
||||
obj[arr[0]] = arr[1];
|
||||
});
|
||||
let arr = i.split('=')
|
||||
obj[arr[0]] = arr[1]
|
||||
})
|
||||
return obj
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user