IOS兼容多账号cookie,即使不用NobyDacookie,也不会提示去获取cookie,cookie失效后,不再自动清除

This commit is contained in:
lxk0301
2020-12-24 10:21:47 +08:00
parent ce5a3e1866
commit e70b2cbd0d
46 changed files with 44 additions and 72 deletions

View File

@ -42,6 +42,7 @@ if ($.isNode()) {
cookiesArr.reverse();
cookiesArr.push(...[$.getdata('CookieJD2'), $.getdata('CookieJD')]);
cookiesArr.reverse();
cookiesArr = cookiesArr.filter(item => item !== "" && item !== null && item !== undefined);
}
const JD_API_HOST = 'https://api.m.jd.com/client.action';
const inviteCodes = [