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

Function requireConfig

jd_jdfactory.js:696–714  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

694 })
695}
696function 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}
715function taskPostUrl(function_id, body = {}, function_id2) {
716 let url = `${JD_API_HOST}`;
717 if (function_id2) {

Callers 1

jd_jdfactory.jsFile · 0.70

Calls 2

logMethod · 0.45
isNodeMethod · 0.45

Tested by

no test coverage detected