mirror of
https://github.com/qitoqito/psyduck.git
synced 2026-01-12 21:20:43 +08:00
.
This commit is contained in:
parent
df0a5bbaa9
commit
7e52e012c0
@ -5,7 +5,7 @@ export class Main extends Template {
|
||||
super()
|
||||
this.profile = {
|
||||
title: '京东互动整合',
|
||||
crontab: 6,
|
||||
crontab: 8,
|
||||
sync: 1,
|
||||
verify: ['linkId'],
|
||||
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`,
|
||||
user,
|
||||
algo: {
|
||||
appId: 'f0f3f'
|
||||
appId: 'f0f3f',
|
||||
expire: {
|
||||
code: 1000
|
||||
}
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
@ -23,7 +23,7 @@ export class Main extends Template {
|
||||
p = await this.getTemp(p.pid) || p
|
||||
if (!p.shopName) {
|
||||
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/',
|
||||
algo: {
|
||||
appId: '4da33',
|
||||
@ -59,6 +59,7 @@ export class Main extends Template {
|
||||
}
|
||||
if (this.haskey(s, 'code', 402)) {
|
||||
p.expired = true
|
||||
this.err(`${p.token} 当前不存在有效的活动!`)
|
||||
}
|
||||
}
|
||||
p.hide = ['continuePrizeRuleList']
|
||||
@ -73,33 +74,6 @@ export class Main extends Template {
|
||||
p.context.jump = true
|
||||
}
|
||||
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({
|
||||
'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}`,
|
||||
@ -124,7 +98,6 @@ export class Main extends Template {
|
||||
p.log(sign.msg)
|
||||
}
|
||||
}
|
||||
// }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -7,7 +7,6 @@ export class Main extends Template {
|
||||
title: '京东视频红包',
|
||||
interval: 3000,
|
||||
round: 4,
|
||||
verify: 2,
|
||||
crontab: 4
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user