优化京东取关脚本,运行一次默认取消全部已关注的店铺与商品
This commit is contained in:
@@ -207,7 +207,7 @@ async function mr() {
|
||||
if (e.data !== 'pong' && e.data && safeGet(e.data)) {
|
||||
let vo = JSON.parse(e.data);
|
||||
await $.wait(Math.random()*2000+500);
|
||||
console.log(`开始任务:"${JSON.stringify(vo.action)}`);
|
||||
console.log(`\n开始任务:"${JSON.stringify(vo.action)}`);
|
||||
switch (vo.action) {
|
||||
case "get_ad":
|
||||
console.log(`当期活动:${vo.data.screen.name}`)
|
||||
@@ -360,8 +360,7 @@ async function mr() {
|
||||
break
|
||||
case "material_fetch_v2":
|
||||
if (vo.code === '200' || vo.code === 200) {
|
||||
console.log(vo)
|
||||
console.log(`【${vo.data.position}】收取成功,获得${vo.data.procedure.produce_num}份${vo.data.material_name}`)
|
||||
console.log(`【${vo.data.position}】收取成功,获得${vo.data.procedure.produce_num}份${vo.data.material_name}\n`);
|
||||
} else {
|
||||
console.log(`任务完成失败,错误信息${vo.msg}`)
|
||||
}
|
||||
|
Reference in New Issue
Block a user