mirror of
https://github.com/qitoqito/psyduck.git
synced 2026-01-16 23:50:42 +08:00
Update jd_task_xiaoge.js
This commit is contained in:
parent
0b4d5f8b23
commit
6775e9f228
@ -27,6 +27,7 @@ export class Main extends Template {
|
|||||||
|
|
||||||
async cc(p) {
|
async cc(p) {
|
||||||
let url = p.url
|
let url = p.url
|
||||||
|
let user = p.user
|
||||||
if (!url.includes("Enhance")) {
|
if (!url.includes("Enhance")) {
|
||||||
url = `${p.url}Enhance`
|
url = `${p.url}Enhance`
|
||||||
}
|
}
|
||||||
@ -37,6 +38,7 @@ export class Main extends Template {
|
|||||||
mode: CryptoJS.mode.CBC,
|
mode: CryptoJS.mode.CBC,
|
||||||
padding: CryptoJS.pad.Pkcs7
|
padding: CryptoJS.pad.Pkcs7
|
||||||
}).toString()
|
}).toString()
|
||||||
|
let info = await this.getInfo(user, 'jsTk')
|
||||||
let req = {
|
let req = {
|
||||||
url,
|
url,
|
||||||
data,
|
data,
|
||||||
@ -46,6 +48,11 @@ export class Main extends Template {
|
|||||||
"report-time": new Date().getTime(),
|
"report-time": new Date().getTime(),
|
||||||
pkid: 11470,
|
pkid: 11470,
|
||||||
ciphertext: this.rsa.encrypt("".concat(t).concat(r)),
|
ciphertext: this.rsa.encrypt("".concat(t).concat(r)),
|
||||||
|
eid: info.token,
|
||||||
|
"biz-type": "service-monitor",
|
||||||
|
"source-client": 2,
|
||||||
|
access: "H5",
|
||||||
|
forcebot: 0
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
user: p.user
|
user: p.user
|
||||||
@ -86,6 +93,13 @@ export class Main extends Template {
|
|||||||
p.award(sign.content.jinBeanNum, 'bean')
|
p.award(sign.content.jinBeanNum, 'bean')
|
||||||
await p.setPublic('sign', 1, parseInt(86400 - (new Date().getTime() - new Date().setHours(0, 0, 0, 0)) / 1000))
|
await p.setPublic('sign', 1, parseInt(86400 - (new Date().getTime() - new Date().setHours(0, 0, 0, 0)) / 1000))
|
||||||
}
|
}
|
||||||
|
else if (this.haskey(sign, 'code', -1)) {
|
||||||
|
p.err(sign.msg)
|
||||||
|
if (sign.msg.includes("火爆")) {
|
||||||
|
p.info.complete = true
|
||||||
|
return
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
let environment = await this.curl({
|
let environment = await this.curl({
|
||||||
'url': `https://lop-proxy.jd.com/UserEnvironmentApi/pageEnvironment`,
|
'url': `https://lop-proxy.jd.com/UserEnvironmentApi/pageEnvironment`,
|
||||||
@ -138,6 +152,7 @@ export class Main extends Template {
|
|||||||
'url': `https://lop-proxy.jd.com/UserMangroveApi/userMangroveInteractive`,
|
'url': `https://lop-proxy.jd.com/UserMangroveApi/userMangroveInteractive`,
|
||||||
json: [{
|
json: [{
|
||||||
"pin": "",
|
"pin": "",
|
||||||
|
clientIp: "$cooMrdGatewayIp$",
|
||||||
"userMangroveDevelopId": mangrove.content.id,
|
"userMangroveDevelopId": mangrove.content.id,
|
||||||
"mangroveInteractiveId": mangrove.content.mangroveInteractiveDto.id
|
"mangroveInteractiveId": mangrove.content.mangroveInteractiveDto.id
|
||||||
}],
|
}],
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user