Compare commits

...

14 Commits

Author SHA1 Message Date
yyds 00eb295fb6 del 2022-03-18 07:18:04 +08:00
yyds 653a5dd7c9 del 2022-03-18 07:14:25 +08:00
yyds 790fbf313b del 2022-03-18 07:12:28 +08:00
yyds 69f0ddb581 del 2022-03-18 07:09:25 +08:00
yyds 6f80593a51 del 2022-03-18 06:59:57 +08:00
yyds f213eb1810 del 2022-03-18 06:58:54 +08:00
yyds 5b3a04b28a del 2022-03-18 06:57:41 +08:00
yyds b605d2ef63 del 2022-03-18 06:51:13 +08:00
yyds 651112d157 del 2022-03-18 06:48:01 +08:00
yyds ef113d2a6c del 2022-03-18 06:43:11 +08:00
yyds 3f12ec5751 del 2022-03-18 06:41:51 +08:00
yyds 205d3a37b7 del 2022-03-18 06:37:31 +08:00
yyds 760aa4bdaf del 2022-03-18 06:35:51 +08:00
yyds 7edeff86bd del 2022-03-18 06:27:14 +08:00
65 changed files with 0 additions and 8311 deletions

File diff suppressed because one or more lines are too long

Binary file not shown.

Before

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 63 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 95 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 424 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 83 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 87 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 160 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 57 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 625 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 208 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 163 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 256 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 108 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 78 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 131 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 311 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 173 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 136 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,72 +0,0 @@
let common = require("./function/common");
let $ = new common.env('京喜工厂助力');
let min = 3,
help = $.config[$.filename(__filename)] || Math.min(min, $.config.JdMain) || min;
$.setOptions({
headers: {
'content-type': 'application/json',
'user-agent': 'jdpingou;iPhone;4.8.2;13.7;a3b4e844090b28d5c38e7529af8115172079be4d;network/wifi;model/iPhone8,1;appBuild/100546;ADID/00000000-0000-0000-0000-000000000000;supportApplePay/1;hasUPPay/0;pushNoticeIsOpen/0;hasOCPay/0;supportBestPay/0;session/374;pap/JA2019_3111789;brand/apple;supportJDSHWK/1;Mozilla/5.0 (iPhone; CPU iPhone OS 13_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148',
'referer': 'https://st.jingxi.com/pingou/dream_factory/divide.html?activeId=laD7IwPwDF1-Te-MvbW9Iw==&_close=1&jxsid=16232028831911667857',
}
});
$.readme = `
44 */6 * * * task ${$.runfile}
export ${$.runfile}=2 #如需增加被助力账号,在这边修改人数
`
eval(common.eval.mainEval($));
async function prepare() {
let deramUrl = 'https://st.jingxi.com/pingou/dream_factory/index.html?ptag=7155.9.46'
let html = await $.curl(deramUrl)
try {
ary = $.matchall(/activeId=([^\&\,]+)","bgImg".+?"start":"([^\"]+)"/g, html)
dicts = {}
for (let i of ary) {
dicts[new Date(i[1]).getTime()] = i[0]
}
max = Math.max(...Object.keys(dicts).filter(d => parseInt(d) < $.timestamp))
$.activeId = dicts[max]
} catch (e) {
$.activeId = 'yNtpovqFehHByNrt_lmb3g=='
}
console.log("开团ID:", $.activeId)
let url = `https://m.jingxi.com/dreamfactory/tuan/QueryActiveConfig?activeId=${$.activeId}&tuanId=&_time=1623214804148&_stk=_time%2CactiveId%2CtuanId&_ste=1&sceneval=2&g_login_type=1&callback=jsonpCBKA&g_ty=ls`
let dec = await jxAlgo.dec(url)
for (let j of cookies['help']) {
$.setCookie(j);
await $.curl(dec.url)
try {
if ($.source.data.userTuanInfo.tuanId) {
$.sharecode.push($.compact($.source.data.userTuanInfo, ['activeId', 'tuanId']))
} else {}
} catch (e) {}
}
}
async function main(id) {
common.assert(id.activeId, '没有开团ID')
let url = `https://m.jingxi.com/dreamfactory/tuan/JoinTuan?activeId=${id.activeId}&tuanId=${id.tuanId}&_time=1623214617107&_stk=_time%2CactiveId%2CtuanId&_ste=1&sceneval=2&g_login_type=1&g_ty=ls`
let dec = await jxAlgo.dec(url)
let params = {
'url': dec.url,
'cookie': id.cookie
}
await $.curl(params)
console.log($.source)
}
async function extra() {
for (let j of cookies['help']) {
$.setCookie(j);
let url = `https://m.jingxi.com/dreamfactory/tuan/QueryActiveConfig?activeId=${$.activeId}&tuanId=&_time=1623214804148&_stk=_time%2CactiveId%2CtuanId&_ste=1&sceneval=2&g_login_type=1&callback=jsonpCBKA&g_ty=ls`
let dec = await jxAlgo.dec(url)
await $.curl(dec.url)
url = `https://m.jingxi.com/dreamfactory/tuan/Award?activeId=${$.source.data.userTuanInfo.activeId}&tuanId=${$.source.data.userTuanInfo.tuanId}&_time=1623518911051&_stk=_time%2CactiveId%2CtuanId&_ste=1&_=1623518911082&sceneval=2&g_login_type=1&callback=jsonpCBKF&g_ty=ls`
dec = await jxAlgo.dec(url)
await $.curl(dec.url)
console.log($.source)
if ($.source.msg != '您还没有成团') {
url = `https://m.jingxi.com/dreamfactory/tuan/CreateTuan?activeId=${$.activeId}&isOpenApp=1&_time=1624120758151&_stk=_time%2CactiveId%2CisOpenApp&_ste=1`
dec = await jxAlgo.dec(url)
await $.curl(dec.url)
console.log($.source)
}
}
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,163 +0,0 @@
let common = require("./function/common");
let jsdom = require("jsdom");
let $ = new common.env('京东保价');
let min = 1,
help = $.config[$.filename(__filename)] || Math.min(min, $.config.JdMain) || min;
$.setOptions({
headers: {
'content-type': 'application/json',
'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Firefox/91.0',
'referer': 'https://msitepp-fm.jd.com/rest/priceprophone/priceProPhoneMenu?sid=0b5a9d5564059f36ed16a8967c37e24w',
}
});
$.readme = `
48 */8 * * * task ${$.runfile}
export ${$.runfile}=1 #输出购买订单保价内容,没什么用
`
eval(common.eval.mainEval($));
async function prepare() {}
async function main(id) {
try {
await jstoken()
// 一键保价
p = {
'url': `https://api.m.jd.com/api?appid=siteppM&functionId=siteppM_skuOnceApply&forcebot=&t=${$.timestamp}`,
"form": {
"body": JSON.stringify({
sid: '',
type: 3,
forcebot: '',
token: $.token,
feSt: 's'
})
}
};
h = await $.curl(p)
console.log(h)
console.log("等待20s获取保价信息")
await $.wait(20000)
// 获取保价信息
let p2 = {
'url': `https://api.m.jd.com/api?appid=siteppM&functionId=siteppM_appliedSuccAmount&forcebot=&t=${$.timestamp}`,
// 'form': {
// 'body': `"{\"sid\":\"\",\"type\":\"3\",\"forcebot\":\"\"}"`
// }
'form': 'body={"sid":"","type":"3","forcebot":"","num":15}'
}
await $.curl(p2)
if ($.source.flag) {
text = `本次保价金额: ${$.source.succAmount}`
} else {
text = "本次无保价订单"
}
console.log(text)
$.notice(text)
if ($.config[$.runfile]) {
// 单个商品检测,没什么用处
console.log("\n手动保价前25个订单")
html = ''
for (let i = 1; i < 6; i++) {
await jstoken()
p3 = {
'url': `https://api.m.jd.com/api?appid=siteppM&functionId=siteppM_priceskusPull&forcebot=&t=${$.timestamp}`,
'form': {
'body': JSON.stringify({
"page": i,
"pageSize": 5,
"keyWords": "",
"sid": "",
"type": "3",
"forcebot": "",
"token": $.token,
"feSt": "s"
})
}
}
html += await $.curl(p3)
}
amount = $.matchall(/class="name"\>\s*([^\<]+).*?orderId="(\d+)"\s*skuId="(\d+)"/g, html.replace(/\n/g, ''))
for (let i of amount) {
// 获取有无申请按钮
p4 = {
'url': `https://api.m.jd.com/api?appid=siteppM&functionId=siteppM_skuProResultPin&forcebot=&t=${$.timestamp}`,
'form': {
'body': JSON.stringify({
"orderId": i[1],
"skuId": i[2],
"sequence": "1",
"sid": "",
"type": "3",
"forcebot": ""
})
}
}
h = await $.curl(p4)
if (h.includes("hidden")) {
console.log(`商品: ${i[0]} 不支持保价或无降价`)
} else {
await jstoken()
// 申请请求
p5 = {
'url': `https://api.m.jd.com/api?appid=siteppM&functionId=siteppM_proApply&forcebot=&t=${$.timestamp}`,
'form': {
'body': JSON.stringify({
"orderId": i[1],
"orderCategory": "Others",
"skuId": i[2],
"sid": "",
"type": "3",
"refundtype": "1",
"forcebot": "",
"token": $.token,
"feSt": "s"
})
}
}
await $.curl(p5)
if ($.source.proSkuApplyId) {
// 申请结果
p6 = {
'url': `https://api.m.jd.com/api?appid=siteppM&functionId=siteppM_moreApplyResult&forcebot=&t=${$.timestamp}`,
'form': `body={"proSkuApplyIds":"${$.source.proSkuApplyId[0]}","type":"3"}`
}
await $.curl(p6)
console.log(`商品: ${i[0]} `, $.haskey($.source, 'applyResults.0.applyResultVo.failTypeStr'))
} else {
console.log(`商品: ${i[0]} ${$.source.errorMessage}`)
}
}
}
}
} catch (e) {}
}
async function jstoken() {
let {
JSDOM
} = jsdom;
let resourceLoader = new jsdom.ResourceLoader({
userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Firefox/91.0',
referrer: "https://msitepp-fm.jd.com/rest/priceprophone/priceProPhoneMenu?sid=0b5a9d5564059f36ed16a8967c37e24w",
});
let virtualConsole = new jsdom.VirtualConsole();
var options = {
referrer: "https://msitepp-fm.jd.com/rest/priceprophone/priceProPhoneMenu?sid=0b5a9d5564059f36ed16a8967c37e24w",
userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Firefox/91.0',
runScripts: "dangerously",
resources: resourceLoader,
// cookieJar,
includeNodeLocations: true,
storageQuota: 10000000,
pretendToBeVisual: true,
virtualConsole
};
$.dom = new JSDOM(`<body><script src="https://js-nocaptcha.jd.com/statics/js/main.min.js"></script></body>`, options);
await $.wait(1000)
try {
feSt = 's'
jab = new $.dom.window.JAB({
bizId: 'jdjiabao',
initCaptcha: false
})
$.token = jab.getToken()
} catch (e) {}
}

View File

@ -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) {}
}

215
jd_xmf.js

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -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 # 不要删除,用来格式化对齐追加的变量的