()
| 1700 | } |
| 1701 | |
| 1702 | function requireConfig() { |
| 1703 | return new Promise(resolve => { |
| 1704 | // console.log('\n开始获取东东超市配置文件\n') |
| 1705 | notify = $.isNode() ? require('./sendNotify') : ''; |
| 1706 | //Node.js用户请在jdCookie.js处填写京东ck; |
| 1707 | const jdCookieNode = $.isNode() ? require('./jdCookie.js') : ''; |
| 1708 | //IOS等用户直接用NobyDa的jd cookie |
| 1709 | if ($.isNode()) { |
| 1710 | Object.keys(jdCookieNode).forEach((item) => { |
| 1711 | if (jdCookieNode[item]) { |
| 1712 | cookiesArr.push(jdCookieNode[item]) |
| 1713 | } |
| 1714 | }) |
| 1715 | if (process.env.JD_DEBUG && process.env.JD_DEBUG === 'false') console.log = () => { |
| 1716 | }; |
| 1717 | } else { |
| 1718 | cookiesArr = [$.getdata('CookieJD'), $.getdata('CookieJD2'), ...jsonParse($.getdata('CookiesJD') || "[]").map(item => item.cookie)].filter(item => !!item); |
| 1719 | } |
| 1720 | console.log(`共${cookiesArr.length}个京东账号\n`); |
| 1721 | // console.log(`东东超市已改版,目前暂不用助力, 故无助力码`) |
| 1722 | // console.log(`\n东东超市商圈助力码::${JSON.stringify(jdSuperMarketShareArr)}`); |
| 1723 | // console.log(`您提供了${jdSuperMarketShareArr.length}个账号的助力码\n`); |
| 1724 | resolve() |
| 1725 | }) |
| 1726 | } |
| 1727 | |
| 1728 | function TotalBean() { |
| 1729 | return new Promise(async resolve => { |
no test coverage detected