()
| 694 | }) |
| 695 | } |
| 696 | function requireConfig() { |
| 697 | return new Promise(resolve => { |
| 698 | console.log(`开始获取${$.name}配置文件\n`); |
| 699 | //Node.js用户请在jdCookie.js处填写京东ck; |
| 700 | const shareCodes = $.isNode() ? require('./jdFactoryShareCodes.js') : ''; |
| 701 | console.log(`共${cookiesArr.length}个京东账号\n`); |
| 702 | $.shareCodesArr = []; |
| 703 | if ($.isNode()) { |
| 704 | Object.keys(shareCodes).forEach((item) => { |
| 705 | if (shareCodes[item]) { |
| 706 | $.shareCodesArr.push(shareCodes[item]) |
| 707 | } |
| 708 | }) |
| 709 | } |
| 710 | // console.log(`\n种豆得豆助力码::${JSON.stringify($.shareCodesArr)}`); |
| 711 | console.log(`您提供了${$.shareCodesArr.length}个账号的${$.name}助力码\n`); |
| 712 | resolve() |
| 713 | }) |
| 714 | } |
| 715 | function taskPostUrl(function_id, body = {}, function_id2) { |
| 716 | let url = `${JD_API_HOST}`; |
| 717 | if (function_id2) { |
no test coverage detected