1
0
mirror of https://github.com/6dylan6/jdpro.git synced 2026-05-06 13:43:05 +08:00

Compare commits

...

3 Commits

Author SHA1 Message Date
dylan 1099ea72e0 1 2023-07-20 13:55:38 +08:00
dylan f0782d2a9a 1 2023-07-20 13:31:49 +08:00
dylan 632cb7a0c0 1 2023-07-20 12:37:05 +08:00
2 changed files with 25 additions and 2 deletions
+23
View File
File diff suppressed because one or more lines are too long
+2 -2
View File
@@ -38,7 +38,7 @@ const ua = require('./USER_AGENTS');
const fs = require('fs');
let cachecode = [];
$.reqnum = 1;
fs.existsSync('./fruit_helpcode') && (cachecode = JSON.parse(fs.readFileSync('./fruit_helpcode', 'utf8')));
//fs.existsSync('./fruit_helpcode') && (cachecode = JSON.parse(fs.readFileSync('./fruit_helpcode', 'utf8')));
!(async () => {
await requireConfig();
if (!cookiesArr[0]) {
@@ -94,7 +94,6 @@ async function jdFruit() {
// option['media-url'] = $.farmInfo.farmUserPro.goodsImage;
message = `【水果名称】${$.farmInfo.farmUserPro.name}\n`;
console.log(`\n【京东账号${$.index}${$.UserName})的${$.name}好友互助码】${$.farmInfo.farmUserPro.shareCode}\n`);
!cachecode.includes($.farmInfo.farmUserPro.shareCode) && cachecode.push($.farmInfo.farmUserPro.shareCode);
console.log(`\n【已成功兑换水果】${$.farmInfo.farmUserPro.winTimes}\n`);
message += `【已兑换水果】${$.farmInfo.farmUserPro.winTimes}\n`;
//await masterHelpShare();//助力好友
@@ -116,6 +115,7 @@ async function jdFruit() {
}
return
}
cachecode.push($.farmInfo.farmUserPro.shareCode);
await doDailyTask();
await doTenWater();//浇水十次
await getFirstWaterAward();//领取首次浇水奖励