mirror of
https://github.com/qitoqito/psyduck.git
synced 2026-01-16 15:40:42 +08:00
Compare commits
2 Commits
ca6735fb2c
...
6ec4c4e1a7
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6ec4c4e1a7 | ||
|
|
15d228d834 |
@ -14,7 +14,7 @@ export class Main extends Template {
|
|||||||
interval: 2000,
|
interval: 2000,
|
||||||
verify: 1,
|
verify: 1,
|
||||||
headers: {
|
headers: {
|
||||||
referer: 'https://pro.m.jd.com/mall/active/2dFZxAZeNGpViWwEb5P9J1SE8e2q/index.html'
|
referer: 'https://pro.m.jd.com/mall/active/3Q5H8xmBy4GyPT8xUgqwYYnAa2ns/index.html'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -29,14 +29,14 @@ export class Main extends Template {
|
|||||||
let algo = context.algo || {}
|
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.53`,
|
||||||
user,
|
user,
|
||||||
algo: {
|
algo: {
|
||||||
...{
|
...{
|
||||||
expire: {
|
expire: {
|
||||||
'data.bizCode': -102
|
'data.bizCode': -102
|
||||||
},
|
},
|
||||||
appId: 'e88fd'
|
appId: '987dd'
|
||||||
}, ...algo
|
}, ...algo
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -54,16 +54,18 @@ export class Main extends Template {
|
|||||||
else {
|
else {
|
||||||
p.log(sign)
|
p.log(sign)
|
||||||
}
|
}
|
||||||
let s = await this.curl({
|
if (context.award) {
|
||||||
'form': `functionId=bean_deliverySign_continue_award&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`,
|
let s = await this.curl({
|
||||||
algo: {
|
'form': `functionId=bean_deliverySign_continue_award&appid=signed_wh5_ihub&body={"activityId":"${context.activityId}"}&rfs=0000&client=apple&uuid=&build=169743&clientVersion=15.1.53&d_model=&osVersion=15.1.1`,
|
||||||
appId: '0cc57'
|
algo: {
|
||||||
},
|
appId: '0cc57'
|
||||||
user
|
},
|
||||||
|
user
|
||||||
|
}
|
||||||
|
)
|
||||||
|
if (this.haskey(s, 'data.result.value')) {
|
||||||
|
p.award(s.data.result.value, 'bean')
|
||||||
}
|
}
|
||||||
)
|
|
||||||
if (this.haskey(s, 'data.result.value')) {
|
|
||||||
p.award(s.data.result.value, 'bean')
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user