Compare commits

..

No commits in common. "e5c32e416d18ff0016d8432041e00033c0af4006" and "a3b632193752a55326778f1284a338fa45015876" have entirely different histories.

10 changed files with 51 additions and 89 deletions

View File

@ -17,7 +17,7 @@ export default {
}, },
referer: "https://prodev.m.jd.com/", referer: "https://prodev.m.jd.com/",
shell: true, shell: true,
// token: true token: true
}, },
'isvjcloud.com': { 'isvjcloud.com': {
cookieJar: true, cookieJar: true,

View File

@ -14,22 +14,41 @@ export class Main extends Template {
} }
async prepare() { async prepare() {
// let c = 0
// for (let user of this.help) {
// let home = await this.curl({
// 'url': `https://api.m.jd.com/?functionId=interact_game_home&_=1740844418368`,
// 'form': `appid=activities_platform&loginType=2&loginWQBiz=&functionId=interact_game_home&body={}`,
// user
// }
// )
// for (let i of this.haskey(home, 'data.assetInfos.bannerInfos')) {
// if (i.functionId == 'beanSign') {
// c++
// this.shareCode({
// assignmentId: i.assignmentId,
// itemId: i.itemId
// })
// }
// }
// if (c) {
// break
// }
// await this.wait(2000)
// }
} }
async main(p) { async main(p) {
let user = p.data.user; let user = p.data.user;
let context = p.context; let context = p.context;
let algo = context.algo || {}
let sign = await this.curl({ let sign = await this.curl({
'url': `https://api.m.jd.com/?functionId=interact_game_sign&_=1740844423946`, 'url': `https://api.m.jd.com/?functionId=interact_game_sign&_=1740844423946`,
'form': `appid=activities_platform&loginType=2&loginWQBiz=&functionId=interact_game_sign&body={"encryptAssignmentId":"${context.assignmentId}","itemId":"${context.itemId}"}`, 'form': `appid=activities_platform&loginType=2&loginWQBiz=&functionId=interact_game_sign&body={"encryptAssignmentId":"${context.assignmentId}","itemId":"${context.itemId}"}`,
user, user,
algo: { algo: {
...{
expire: { expire: {
code: 3 code: 3
} }
}, ...algo
} }
} }
) )

View File

@ -26,18 +26,15 @@ export class Main extends Template {
async main(p) { async main(p) {
let user = p.data.user let user = p.data.user
let context = p.context let context = p.context
let algo = context.algo || {}
let sign = await this.curl({ let sign = await this.curl({
'url': `https://api.m.jd.com/api`, 'url': `https://api.m.jd.com/api`,
'form': `functionId=bean_deliverySign_sign&appid=signed_wh5_ihub&body={"activityId":"${context.activityId}"}&rfs=0000&client=apple&uuid=&build=169743&clientVersion=15.0.25&d_model=&osVersion=15.1.1`, 'form': `functionId=bean_deliverySign_sign&appid=signed_wh5_ihub&body={"activityId":"${context.activityId}"}&rfs=0000&client=apple&uuid=&build=169743&clientVersion=15.0.25&d_model=&osVersion=15.1.1`,
user, user,
algo: { algo: {
...{
expire: { expire: {
'data.bizCode': -102 'data.bizCode': -102
}, },
appId: 'e88fd' appId: 'e88fd'
}, ...algo
} }
} }
) )

View File

@ -36,7 +36,6 @@ export class Main extends Template {
async main(p) { async main(p) {
let user = p.data.user; let user = p.data.user;
let context = p.context; let context = p.context;
let algo = context.algo || {}
let gift = function(a) { let gift = function(a) {
for (let i of this.haskey(a, ['result.result.prizeInfovo', 'result.result.prizeInfovos']) || {}) { for (let i of this.haskey(a, ['result.result.prizeInfovo', 'result.result.prizeInfovos']) || {}) {
if (i.prizeType == 2) { if (i.prizeType == 2) {
@ -54,12 +53,10 @@ export class Main extends Template {
'form': `body={"infoId":"jdhHome_task","channel":"${context.channel}","appKey":"${context.appKey}","encodeId":"${context.encodeId}","imei":"CFFGHFCF","location":{"province":"16","city":"1234","district":"1234","town":"56789"}}`, 'form': `body={"infoId":"jdhHome_task","channel":"${context.channel}","appKey":"${context.appKey}","encodeId":"${context.encodeId}","imei":"CFFGHFCF","location":{"province":"16","city":"1234","district":"1234","town":"56789"}}`,
user, user,
algo: { algo: {
...{
appId: "8c399", appId: "8c399",
expire: { expire: {
'result.code': -1 'result.code': -1
} }
}, ...algo
} }
} }
) )

View File

@ -1,43 +0,0 @@
import {Template} from '../../template.js'
export class Main extends Template {
constructor() {
super()
this.profile = {
title: '京东幸运奖励',
crontab: 3
}
}
async prepare() {
}
async main(p) {
let user = p.data.user;
let context = p.context;
let show = await this.curl({
'form': `functionId=secEntryBenefitShow&body={"channelId":"2","actSecTraffic":"1"}&appid=signed_wh5&client=ios&screen=390*844&networkType=wifi&clientVersion=15.0.25&d_model=iPhone13%2C3&osVersion=15.1.1`,
user
}
)
if (this.haskey(show, 'data.result.currentTime')) {
let s = await this.curl({
'form': `functionId=secEntryBenefitReceive&body={"channelId":"2","actSecTraffic":"1"}&appid=signed_wh5&client=ios&screen=390*676&networkType=wifi&clientVersion=15.0.25&d_model=iPhone13%2C3&osVersion=15.1.1`,
user
}
)
if (this.haskey(s, 'data.result.awardList')) {
p.award(s.data.result.awardList[0].beanNum, 'bean')
}
p.info.work = true
}
else if (this.haskey(show, 'data')) {
p.info.work = true
p.log("没有幸运奖励")
}
else {
p.log("没有幸运奖励")
}
}
}

View File

@ -22,19 +22,16 @@ export class Main extends Template {
async main(p) { async main(p) {
let user = p.data.user; let user = p.data.user;
let context = p.context; let context = p.context;
let algo = context.algo || {}
let s = await this.curl({ let s = await this.curl({
'url': `https://api.m.jd.com/client.action`, 'url': `https://api.m.jd.com/client.action`,
'form': `functionId=sign&body={"vendorId":"${context.vendorId}","sourceRpc":"shop_app_sign_home"}&client=apple&clientVersion=15.0.1`, 'form': `functionId=sign&body={"vendorId":"${context.vendorId}","sourceRpc":"shop_app_sign_home"}&client=apple&clientVersion=15.0.1`,
user, user,
algo: { algo: {
...{
app: true, app: true,
expire: { expire: {
'code': '1', 'code': '1',
status: true status: true
} }
}, ...algo
} }
} }
) )

View File

@ -70,7 +70,6 @@ export class Main extends Template {
async main(p) { async main(p) {
let user = p.data.user; let user = p.data.user;
let context = p.context; let context = p.context;
let algo = context.algo || {}
if (!context.venderId) { if (!context.venderId) {
p.err("没有获取到该Token的数据,请重试...") p.err("没有获取到该Token的数据,请重试...")
p.context.jump = true p.context.jump = true
@ -81,11 +80,9 @@ export class Main extends Template {
form: `appid=interCenter_shopSign&loginType=2&functionId=interact_center_shopSign_signCollectGift&body={"token":"${context.token}","venderId":${context.venderId},"activityId":${context.activityId},"type":56,"actionType":7}`, form: `appid=interCenter_shopSign&loginType=2&functionId=interact_center_shopSign_signCollectGift&body={"token":"${context.token}","venderId":${context.venderId},"activityId":${context.activityId},"type":56,"actionType":7}`,
user, user,
algo: { algo: {
...{
appId: '4da33', appId: '4da33',
version: 'latest', version: 'latest',
status: true status: true
}, ...algo
}, },
}) })
if (this.haskey(sign, 'code', 402)) { if (this.haskey(sign, 'code', 402)) {

View File

@ -19,7 +19,6 @@ export class Main extends Template {
async main(p) { async main(p) {
let user = p.data.user; let user = p.data.user;
let context = p.context; let context = p.context;
let algo = context.algo || {}
p.log("正在签到:", p.context.name) p.log("正在签到:", p.context.name)
let appid = this.config.appids[this.n % this.config.appids.length] let appid = this.config.appids[this.n % this.config.appids.length]
let signIn = await this.curl({ let signIn = await this.curl({
@ -33,14 +32,13 @@ export class Main extends Template {
})}&sign=11&t=1710422476977`, })}&sign=11&t=1710422476977`,
user, user,
algo: { algo: {
...{
appId: 'e2224', appId: 'e2224',
log: true, log: true,
// code: ['0']
expire: { expire: {
"subCode": "300" "subCode": "300"
} }
}, ...algo }
},
} }
) )
let subCode = this.haskey(signIn, 'subCode') let subCode = this.haskey(signIn, 'subCode')

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long