Skip to content

Commit

Permalink
账户不做任务设置
Browse files Browse the repository at this point in the history
  • Loading branch information
air committed Aug 22, 2021
1 parent 06e6dd2 commit 8fd2c9d
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 15 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ JdMain为你想设置的主号数,假如你docker挂了10个号,前面2个号是

如果都没添加,那么会根据脚本中的min参数来设置主要助力个数

如需排除账号做某一个任务,只需在全局变量filene_except中添加账户pt_pin,用","隔开; 比如export jd_help_test_except = 'pt_pin1,pt_pin2'


### 全局助力次数: JdMain (_help_xxx)
Expand All @@ -24,5 +25,6 @@ export JdMain = 2

export jd_help_grapbean = 3

### 跳过当前账号: filename_except


export jd_help_test_except = 'jd_1,jd_2'
33 changes: 19 additions & 14 deletions function/eval.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,23 +27,28 @@ function mainEval($) {
'user': $.user,
'cookie': $.cookie
}
try{
if (!$.thread) {
console.log(\`\n******开始【京东账号\${$.index}】\${$.user} 任务*********\n\`);
$.setCookie($.cookie)
}
if ($.sharecode.length > 0) {
for (let smp of $.sharecode) {
smp = Object.assign({ ...info}, smp);
$.thread ? main(smp) : await main(smp);
if ($.config[\`\${$.runfile}_except\`] && $.config[\`\${$.runfile}_except\`].includes(\$.user)) {
console.log(\`全局变量\${$.runfile}_except中配置了该账号pt_pin,跳过此次任务\`)
}else{
try{
if (!$.thread) {
console.log(\`\n******开始【京东账号\${$.index}】\${$.user} 任务*********\n\`);
$.setCookie($.cookie)
}
if ($.sharecode.length > 0) {
for (let smp of $.sharecode) {
smp = Object.assign({ ...info}, smp);
$.thread ? main(smp) : await main(smp);
}
}else{
$.thread ? main(info) : await main(info);
}
}else{
$.thread ? main(info) : await main(info);
}
catch(em){
console.log(em.message)
}
}
catch(em){
console.log(em.message)
}
}
}catch(em){console.log(em.message)}
Expand Down

0 comments on commit 8fd2c9d

Please sign in to comment.