修复bug

This commit is contained in:
lxk0301
2020-11-26 15:40:47 +08:00
parent b3b4c3cdc0
commit c2972a7851

View File

@@ -587,9 +587,9 @@ function requireConfig() {
console.log(`开始获取${$.name}配置文件\n`);
//Node.js用户请在jdCookie.js处填写京东ck;
const shareCodes = $.isNode() ? require('./jdFactoryShareCodes.js') : '';
console.log(`${cookiesArr.length}个京东账号\n`)
console.log(`${cookiesArr.length}个京东账号\n`);
$.shareCodesArr = [];
if ($.isNode()) {
$.shareCodesArr = [];
Object.keys(shareCodes).forEach((item) => {
if (shareCodes[item]) {
$.shareCodesArr.push(shareCodes[item])