MCPcopy Create free account
hub / github.com/Semporia/Scripts / goodsMain

Function goodsMain

jd_unsubscribe.js:97–109  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

95}
96
97async function goodsMain() {
98 $.unsubscribeGoodsCount = 0;
99 if ((goodPageSize * 1) !== 0) {
100 await unsubscribeGoods();
101 const le = Math.ceil($.goodsTotalNum / 20) - 1 >= 0 ? Math.ceil($.goodsTotalNum / 20) - 1 : 0;
102 for (let i = 0; i < new Array(le).length; i++) {
103 await $.wait(100);
104 await unsubscribeGoods();
105 }
106 } else {
107 console.log(`\n您设置的是不取关商品\n`);
108 }
109}
110
111async function unsubscribeGoods() {
112 let followGoods = await getFollowGoods();

Callers 1

jdUnsubscribeFunction · 0.85

Calls 3

unsubscribeGoodsFunction · 0.85
waitMethod · 0.45
logMethod · 0.45

Tested by

no test coverage detected