()
| 95 | } |
| 96 | |
| 97 | async 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 | |
| 111 | async function unsubscribeGoods() { |
| 112 | let followGoods = await getFollowGoods(); |
no test coverage detected