From b605d2ef637409965a7945c3ee2b6fcee833eecd Mon Sep 17 00:00:00 2001 From: yyds Date: Fri, 18 Mar 2022 06:51:13 +0800 Subject: [PATCH] del --- jd_work_validate.js | 48 --------------------------- serverless.yml | 81 --------------------------------------------- 2 files changed, 129 deletions(-) delete mode 100644 jd_work_validate.js delete mode 100644 serverless.yml diff --git a/jd_work_validate.js b/jd_work_validate.js deleted file mode 100644 index e1ea870..0000000 --- a/jd_work_validate.js +++ /dev/null @@ -1,48 +0,0 @@ -let common = require("./function/common"); -let $ = new common.env('京东验证码获取'); -let validator = require("./function/jdValidate"); -let fs = require("fs"); -let min = 2, - help = $.config[$.filename(__filename)] || Math.min(min, $.config.JdMain) || min; -$.setOptions({ - headers: { - 'content-type': 'application/json', - 'user-agent': 'jdapp;iPhone;9.4.6;14.2;965af808880443e4c1306a54afdd5d5ae771de46;network/wifi;supportApplePay/0;hasUPPay/0;hasOCPay/0;model/iPhone8,4;addressid/;supportBestPay/0;appBuild/167618;jdSupportDarkMode/0;Mozilla/5.0 (iPhone; CPU iPhone OS 14_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148;supportJDSHWK/1', - 'referer': 'https://happy.m.jd.com/babelDiy/Zeus/3ugedFa7yA6NhxLN5gw2L3PF9sQC/index.html?asid=287215626&un_area=12_904_905_57901&lng=117.612969135975&lat=23.94014745198865', - } -}); -$.readme = ` -58 7,15,23 * * * task ${$.runfile} -export ${$.runfile}_limit=5 #限制跑验证码账户个数 -export JDJR_SERVER=ip #如获取不到验证码,本地先获取iv.jd.com的ip,再自行添加环境变量 -` -eval(common.eval.mainEval($)); -async function prepare() { - $.thread = 1; - $.sleep *= 8; - await fs.writeFile('./jdvalidate.txt', '', (error) => { - if (error) return console.log("初始化失败" + error.message); - console.log("初始化成功"); - }) -} -async function main(id) { - let code = new validator.JDJRValidator; - for (let i = 0; i < 2; i++) { - validate = '' - try { - let veri = await code.run(); - if (veri.validate) { - validate = veri.validate; - } - } catch (e) {} - // $.code.push(validate) - if (validate) { - fs.appendFile('./jdvalidate.txt', validate + "\n", (error) => { - if (error) return console.log("追加文件失败" + error.message); - console.log("追加成功"); - }) - } - console.log("验证码", validate) - } - try {} catch (e) {} -} diff --git a/serverless.yml b/serverless.yml deleted file mode 100644 index 564954a..0000000 --- a/serverless.yml +++ /dev/null @@ -1,81 +0,0 @@ -# serverless.yml - -#组件信息 -component: scf # (必选) 组件名称,在该实例中为scf -name: jdscript # (必选) 组件实例名称。 - -#组件参数配置 -inputs: - name: scf-${name} # 云函数名称,默认为 ${name}-${stage}-${app} - enableRoleAuth: true # 默认会尝试创建 SCF_QcsRole 角色,如果不需要配置成 false 即可 - src: ./ - handler: index.main_handler #入口 - runtime: Nodejs12.16 # 运行环境 默认 Nodejs10.15 - region: ap-hongkong # 函数所在区域 - description: This is a function in ${app} application. - memorySize: 128 # 内存大小,单位MB - timeout: 900 # 超时时间,单位秒 - events: #触发器 - - timer: #签到 - parameters: - name: beansign - cronExpression: "0 0 0 * * * *" - enable: true - argument: jd_bean_sign - - timer: #东东超市兑换奖品 #摇京豆 #京东汽车兑换 #家电星推官 #家电星推官好友互助 - parameters: - name: blueCoin_clublottery_carexchange_xtg_xtghelp - cronExpression: "0 0 0 * * * *" - enable: true - argument: jd_blueCoin&jd_club_lottery&jd_car_exchange&jd_xtg&jd_xtg_help - - timer: #东东农场 #东东萌宠 #口袋书店 #京喜农场 #京东极速版签到 #京东家庭号 #金榜创造营 #明星小店 - parameters: - name: fruit_pet_bookshop_jxnc_speedsign_family_goldcreator_starshop - cronExpression: "0 5 6-18/6,8 * * * *" - enable: true - argument: jd_fruit&jd_pet&jd_bookshop&jd_jxnc&jd_speed_sign&jd_family&jd_gold_creator&jd_star_shop - - timer: #宠汪汪喂食 #宠汪汪 #摇钱树 #京东种豆得豆 #京喜工厂 #东东工厂 #东东健康社区收集能量 - parameters: - name: feedPets_joy_moneyTree_plantBean_dreamFactory_jdfactory_healthcollect - cronExpression: "0 3 */1 * * * *" - enable: true - argument: jd_joy_feedPets&jd_joy&jd_moneyTree&jd_plantBean&jd_dreamFactory&jd_jdfactory&jd_health_collect - - timer: #宠汪汪积分兑换京豆 #签到领现金 #点点券 #东东小窝 #京喜财富岛 #京东直播 #东东健康社区 #每日抽奖 #女装魔盒 #跳跳乐 #5G超级盲盒 - parameters: - name: joyreward_cash_necklace_smallhome_cfd_live_health_dailylottery_nzmh_jump_mohe - cronExpression: "0 0 0-16/8,20 * * * *" - enable: true - argument: jd_joy_reward&jd_cash&jd_necklace&jd_small_home&jd_cfd&jd_live&jd_health&jd_daily_lottery&jd_nzmh&jd_jump&jd_mohe - - timer: #京东全民开红包 #进店领豆 #取关京东店铺商品 #京东抽奖机 #京东汽车 #京东秒秒币 - parameters: - name: redPacket_shop_unsubscribe_lotteryMachine_car_ms - cronExpression: "0 10 0 * * * *" - enable: true - argument: jd_redPacket&jd_shop&jd_unsubscribe&jd_lotteryMachine&jd_car&jd_ms - - timer: #天天提鹅 #手机狂欢城 - parameters: - name: dailyegg_carnivalcity - cronExpression: "0 8 */3 * * * *" - enable: true - argument: jd_daily_egg&jd_carnivalcity - - timer: #东东超市 #十元街 #动物联萌 #翻翻乐 - parameters: - name: superMarket_syj_zoo_bigwinner - cronExpression: "0 15 */1 * * * *" - enable: true - argument: jd_superMarket&jd_syj&jd_zoo&jd_big_winner - - timer: #京豆变动通知 #疯狂的joy #监控crazyJoy分红 #京东排行榜 #领京豆额外奖励 #京东保价 #闪购盲盒 #新潮品牌狂欢 #京喜领88元红包 - parameters: - name: beanchange_crazyjoy_crazyjoybonus_rankingList_beanhome_price_sgmh_mcxhd_jxlhb - cronExpression: "0 30 7 * * * *" - enable: true - argument: jd_bean_change&jd_crazy_joy&jd_crazy_joy_bonus&jd_rankingList&jd_bean_home&jd_price&jd_sgmh&jd_mcxhd&jd_jxlhb - - timer: #金融养猪 #京东快递 #京东赚赚 #京东极速版红包 #领金贴 - parameters: - name: pigPet_kd_jdzz_speedredpocke_jintie - cronExpression: "0 3 1 * * * *" - enable: true - argument: jd_pigPet&jd_kd&jd_jdzz&jd_speed_redpocke&jd_jin_tie - environment: # 环境变量 - variables: # 环境变量对象 - AAA: BBB # 不要删除,用来格式化对齐追加的变量的