fix bug
This commit is contained in:
11
jd_jdzz.js
11
jd_jdzz.js
@@ -383,7 +383,16 @@ function requireConfig() {
|
|||||||
return new Promise(resolve => {
|
return new Promise(resolve => {
|
||||||
console.log(`开始获取${$.name}配置文件\n`);
|
console.log(`开始获取${$.name}配置文件\n`);
|
||||||
//Node.js用户请在jdCookie.js处填写京东ck;
|
//Node.js用户请在jdCookie.js处填写京东ck;
|
||||||
const shareCodes = $.isNode() ? process.env.JDZZ_SHARECODES.split('&') : [];
|
let shareCodes = [];
|
||||||
|
if ($.isNode()) {
|
||||||
|
if (process.env.JDZZ_SHARECODES) {
|
||||||
|
if (process.env.JDZZ_SHARECODES.indexOf('\n') > -1) {
|
||||||
|
shareCodes = process.env.JDZZ_SHARECODES.split('\n');
|
||||||
|
} else {
|
||||||
|
shareCodes = process.env.JDZZ_SHARECODES.split('&');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
console.log(`共${cookiesArr.length}个京东账号\n`);
|
console.log(`共${cookiesArr.length}个京东账号\n`);
|
||||||
$.shareCodesArr = [];
|
$.shareCodesArr = [];
|
||||||
if ($.isNode()) {
|
if ($.isNode()) {
|
||||||
|
Reference in New Issue
Block a user