Skip to content

Commit

Permalink
更新
Browse files Browse the repository at this point in the history
  • Loading branch information
wide19 committed Dec 15, 2021
1 parent 886f3b9 commit 96a521e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
4 changes: 1 addition & 3 deletions jd_gold_sign.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,9 @@ function goldCenterHead() {
if (safeGet(data)) {
data = JSON.parse(data)
if (data.code === '0') {
// console.log(data);
await goldCreatorDoTask({ "type": 1 })
if (data.result.medalNum === 5) {
await goldCreatorDoTask({ "type": 2 })
} else {
await goldCreatorDoTask({ "type": 1 })
}
} else {
console.log(`失败:${JSON.stringify(data)}\n`);
Expand Down
2 changes: 1 addition & 1 deletion jd_sign_graphics.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions jd_productZ4Brand.js → jd_superBrand.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
特务Z
脚本没有自动开卡,会尝试领取开卡奖励
cron 23 8,20 * * * https://raw.githubusercontent.com/star261/jd/main/scripts/jd_productZ4Brand.js
cron 13 15,19 * * * https://raw.githubusercontent.com/star261/jd/main/scripts/jd_superBrand.js
一天要跑2次
*/
const $ = new Env('特务Z');
Expand Down Expand Up @@ -145,7 +145,7 @@ async function doTask(){
if (signList.length === 0) {
console.log(`任务:${$.oneTask.assignmentName},信息异常`);
}
if ($.oneTask.assignmentName.indexOf('首页下拉') !== -1) {
if ($.oneTask.assignmentName.indexOf('首页下拉') !== -1 || $.oneTask.assignmentDesc.includes('首页下拉')) {
for (let j = 0; j < signList.length; j++) {
if (signList[j].status === 1) {
console.log(`任务:${$.oneTask.assignmentName},去执行,请稍稍`);
Expand Down

0 comments on commit 96a521e

Please sign in to comment.