mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-17 05:38:04 +00:00
chore: remove netease api code from repo
This commit is contained in:
parent
e1f1d18aa4
commit
4bce2c7071
228 changed files with 1 additions and 20219 deletions
|
|
@ -1,17 +0,0 @@
|
|||
module.exports = {
|
||||
toBoolean(val) {
|
||||
if (typeof val === 'boolean') return val;
|
||||
if (val === '') return val;
|
||||
return val === 'true' || val == '1';
|
||||
},
|
||||
cookieToJson(cookie) {
|
||||
if (!cookie) return {};
|
||||
let cookieArr = cookie.split(';');
|
||||
let obj = {};
|
||||
cookieArr.forEach((i) => {
|
||||
let arr = i.split('=');
|
||||
obj[arr[0]] = arr[1];
|
||||
});
|
||||
return obj;
|
||||
},
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue