修复
This commit is contained in:
18
jd_unbind.js
18
jd_unbind.js
@ -1,16 +1,18 @@
|
|||||||
/*
|
/*
|
||||||
注销京东会员卡
|
注销京东会员卡
|
||||||
|
是注销京东已开的店铺会员,不是京东plus会员
|
||||||
脚本兼容: Quantumult X, Surge, Loon, JSBox, Node.js
|
脚本兼容: Quantumult X, Surge, Loon, JSBox, Node.js
|
||||||
// Quantumult X
|
==========Quantumult X==========
|
||||||
[task_local]
|
[task_local]
|
||||||
#注销京东会员卡
|
#注销京东会员卡
|
||||||
55 23 * * * https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_unbind.js, tag=注销京东会员卡, enabled=true
|
55 23 * * * https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_unbind.js, tag=注销京东会员卡, enabled=true
|
||||||
// Loon
|
=======Loon========
|
||||||
[Script]
|
[Script]
|
||||||
cron "55 23 * * *" script-path=https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_unbind.js,tag=注销京东会员卡
|
cron "55 23 * * *" script-path=https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_unbind.js,tag=注销京东会员卡
|
||||||
// Surge
|
========Surge==========
|
||||||
注销京东会员卡 = type=cron,cronexp="55 23 * * *",wake-system=1,timeout=20,script-path=https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_unbind.js
|
注销京东会员卡 = type=cron,cronexp="55 23 * * *",wake-system=1,timeout=620,script-path=https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_unbind.js
|
||||||
|
=======小火箭=====
|
||||||
|
注销京东会员卡 = type=cron,script-path=https://raw.githubusercontent.com/lxk0301/jd_scripts/master/jd_unbind.js, cronexpr="10 23 * * *", timeout=200, enable=true
|
||||||
*/
|
*/
|
||||||
const $ = new Env('注销京东会员卡');
|
const $ = new Env('注销京东会员卡');
|
||||||
//Node.js用户请在jdCookie.js处填写京东ck;
|
//Node.js用户请在jdCookie.js处填写京东ck;
|
||||||
@ -91,8 +93,10 @@ async function unsubscribeCards() {
|
|||||||
console.log(`去注销会员卡【${item.brandName}】`)
|
console.log(`去注销会员卡【${item.brandName}】`)
|
||||||
let res = await unsubscribeCard(item.brandId);
|
let res = await unsubscribeCard(item.brandId);
|
||||||
if (res['success']) {
|
if (res['success']) {
|
||||||
count++;
|
if (res['busiCode'] === '200') {
|
||||||
$.unsubscribeCount ++
|
count++;
|
||||||
|
$.unsubscribeCount ++
|
||||||
|
}
|
||||||
}
|
}
|
||||||
await $.wait(1000)
|
await $.wait(1000)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user