From f0782d2a9a68ac410f6188f29cd5cdaf5b13ca27 Mon Sep 17 00:00:00 2001 From: dylan <58234511@qq.com> Date: Thu, 20 Jul 2023 13:31:49 +0800 Subject: [PATCH] 1 --- jd_fruit.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jd_fruit.js b/jd_fruit.js index ab982c3..8da76b7 100644 --- a/jd_fruit.js +++ b/jd_fruit.js @@ -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,7 @@ 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); + cachecode.push($.farmInfo.farmUserPro.shareCode); console.log(`\n【已成功兑换水果】${$.farmInfo.farmUserPro.winTimes}次\n`); message += `【已兑换水果】${$.farmInfo.farmUserPro.winTimes}次\n`; //await masterHelpShare();//助力好友