This commit is contained in:
可达鸭 2025-03-01 19:49:15 +08:00
parent df0a5bbaa9
commit 7e52e012c0
3 changed files with 7 additions and 32 deletions

View File

@ -5,7 +5,7 @@ export class Main extends Template {
super() super()
this.profile = { this.profile = {
title: '京东互动整合', title: '京东互动整合',
crontab: 6, crontab: 8,
sync: 1, sync: 1,
verify: ['linkId'], verify: ['linkId'],
tempExpire: 3 * 86400, tempExpire: 3 * 86400,
@ -332,7 +332,10 @@ export class Main extends Template {
'form': `functionId=apTaskDrawAward&body={"taskType":"${i.taskType}","taskId":${i.id},"channel":4,"checkVersion":true,"linkId":"${context.linkId}"}&t=1739360342034&appid=activities_platform&client=ios&clientVersion=15.0.11`, 'form': `functionId=apTaskDrawAward&body={"taskType":"${i.taskType}","taskId":${i.id},"channel":4,"checkVersion":true,"linkId":"${context.linkId}"}&t=1739360342034&appid=activities_platform&client=ios&clientVersion=15.0.11`,
user, user,
algo: { algo: {
appId: 'f0f3f' appId: 'f0f3f',
expire: {
code: 1000
}
} }
} }
) )

View File

@ -23,7 +23,7 @@ export class Main extends Template {
p = await this.getTemp(p.pid) || p p = await this.getTemp(p.pid) || p
if (!p.shopName) { if (!p.shopName) {
var s = await this.curl({ var s = await this.curl({
url: `https://api.m.jd.com/api?appid=interCenter_shopSign&loginType=2&functionId=interact_center_shopSign_getActivityInfo&body={"token":"${p.token}","venderId":""}`, url: `http://api.m.jd.com/api?appid=interCenter_shopSign&loginType=2&functionId=interact_center_shopSign_getActivityInfo&body={"token":"${p.token}","venderId":""}`,
referer: 'https://h5.m.jd.com/', referer: 'https://h5.m.jd.com/',
algo: { algo: {
appId: '4da33', appId: '4da33',
@ -59,6 +59,7 @@ export class Main extends Template {
} }
if (this.haskey(s, 'code', 402)) { if (this.haskey(s, 'code', 402)) {
p.expired = true p.expired = true
this.err(`${p.token} 当前不存在有效的活动!`)
} }
} }
p.hide = ['continuePrizeRuleList'] p.hide = ['continuePrizeRuleList']
@ -73,33 +74,6 @@ export class Main extends Template {
p.context.jump = true p.context.jump = true
} }
else { else {
// let s = await this.curl({
// 'url': `https://api.m.jd.com/api?appid=interCenter_shopSign&loginType=2&functionId=interact_center_shopSign_getSignRecord&body={"token":"${context.token}","venderId":${context.venderId},"activityId":${context.activityId},"type":56,"actionType":7}&jsonp=jsonp1004`,
// user,
// algo: {
// appId: '4da33',
// expire: {
// code: 407000007
// }
// }
// })
// if (this.haskey(s, 'code', 402)) {
// p.log('当前不存在有效的活动')
// p.context.finish = true
// return
// }
// let days = this.haskey(s, 'data.days')
// let isOk = 0
// if (context.continuePrizeRuleList) {
// let maxDay = this.column(context.continuePrizeRuleList, 'days').reduce((v, k) => {
// return v += k
// }, 0)
// if (days>=maxDay) {
// console.log(`签到已满${maxDay}天,跳出签到`, context.token, `https://shop.m.jd.com/?venderId=${context.venderId}`)
// isOk++
// }
// }
// if (!isOk) {
let sign = await this.curl({ let sign = await this.curl({
'url': `https://api.m.jd.com`, 'url': `https://api.m.jd.com`,
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}`,
@ -124,7 +98,6 @@ export class Main extends Template {
p.log(sign.msg) p.log(sign.msg)
} }
} }
// }
} }
} }
} }

View File

@ -7,7 +7,6 @@ export class Main extends Template {
title: '京东视频红包', title: '京东视频红包',
interval: 3000, interval: 3000,
round: 4, round: 4,
verify: 2,
crontab: 4 crontab: 4
} }
} }