mirror of
https://github.com/qitoqito/psyduck.git
synced 2026-01-12 21:20:43 +08:00
Update jd_task_jinrong.js
This commit is contained in:
parent
a822210c61
commit
0a7c5c1ca4
@ -52,12 +52,13 @@ export class Main extends Template {
|
|||||||
let user = p.data.user;
|
let user = p.data.user;
|
||||||
let context = p.context;
|
let context = p.context;
|
||||||
const aar = this.crypto.aar
|
const aar = this.crypto.aar
|
||||||
|
let info = await this.getInfo(user, 'jsTk')
|
||||||
let device = {
|
let device = {
|
||||||
deviceInfo: {
|
deviceInfo: {
|
||||||
"jsToken": "",
|
"jsToken": "",
|
||||||
"fp": this.md5(new Date().getTime().toString()),
|
"fp": this.md5(new Date().getTime().toString()),
|
||||||
"sdkToken": `jdd016DZNHFZEX6ISWPRAZUKJDKGFIRQJ5MRXPZHLTK3ZIVKLBTD4SEZNDR6S${this.rand(10, 99)}JO2TLV${this.rand(10, 99)}HB5MV6JW52RVAZNXKEXXHGYDCX5MIJ7NSC4DY01234567`,
|
"sdkToken":info.token|| `jdd016DZNHFZEX6ISWPRAZUKJDKGFIRQJ5MRXPZHLTK3ZIVKLBTD4SEZNDR6S${this.rand(10, 99)}JO2TLV${this.rand(10, 99)}HB5MV6JW52RVAZNXKEXXHGYDCX5MIJ7NSC4DY01234567`,
|
||||||
"eid": `FQ7Z2DTGYZSJM5FKY${this.rand(10, 99)}JLAURRHP2UZHK2ID7554EMNWWNNSK3JBCTLTR45IOP3Z5K3YJHOG${this.rand(10, 99)}SJAOB${this.rand(10, 99)}KVS3RH7G2U`,
|
"eid": info.eid || `FQ7Z2DTGYZSJM5FKY${this.rand(10, 99)}JLAURRHP2UZHK2ID7554EMNWWNNSK3JBCTLTR45IOP3Z5K3YJHOG${this.rand(10, 99)}SJAOB${this.rand(10, 99)}KVS3RH7G2U`,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
var nonce = aar.nonce()
|
var nonce = aar.nonce()
|
||||||
@ -65,24 +66,22 @@ export class Main extends Template {
|
|||||||
"channelCode": context.channelCode,
|
"channelCode": context.channelCode,
|
||||||
PIN: user
|
PIN: user
|
||||||
}), nonce)
|
}), nonce)
|
||||||
let queryMission = await this.curl({
|
let mile = await this.curl({
|
||||||
'url': `https://ms.jr.jd.com/gw/generic/mission/h5/m/queryMission`,
|
'url': `https://ms.jr.jd.com/gw2/generic/Mission/h5/m/queryMilePost`,
|
||||||
'json': {
|
json: {
|
||||||
"reqData": {
|
"reqData": {
|
||||||
"channelCode": context.channelCode,
|
"source": "mdH5Pagedeploy",
|
||||||
"deviceInfo": device.deviceInfo,
|
"token": "TVBaZRYGYS",
|
||||||
"nonce": nonce,
|
"channelCode": context.channelCode,
|
||||||
"signature": signature
|
"milePostIdList": [87],
|
||||||
}
|
"queryMissionFlag": 2,
|
||||||
},
|
"deviceInfo": device.deviceInfo
|
||||||
algo: {
|
}
|
||||||
expire: {
|
},
|
||||||
"resultCode": 3,
|
user
|
||||||
}
|
}
|
||||||
},
|
)
|
||||||
user
|
let data = this.haskey(mile, 'resultData.data.0.missionList')
|
||||||
})
|
|
||||||
let data = this.haskey(queryMission, 'resultData.data')
|
|
||||||
let status = 1
|
let status = 1
|
||||||
if (data) {
|
if (data) {
|
||||||
for (let i of data) {
|
for (let i of data) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user