mirror of
https://github.com/qitoqito/psyduck.git
synced 2026-01-13 05:50:43 +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) {
|
||||
let url = p.url
|
||||
let user = p.user
|
||||
if (!url.includes("Enhance")) {
|
||||
url = `${p.url}Enhance`
|
||||
}
|
||||
@ -37,6 +38,7 @@ export class Main extends Template {
|
||||
mode: CryptoJS.mode.CBC,
|
||||
padding: CryptoJS.pad.Pkcs7
|
||||
}).toString()
|
||||
let info = await this.getInfo(user, 'jsTk')
|
||||
let req = {
|
||||
url,
|
||||
data,
|
||||
@ -46,6 +48,11 @@ export class Main extends Template {
|
||||
"report-time": new Date().getTime(),
|
||||
pkid: 11470,
|
||||
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
|
||||
@ -86,6 +93,13 @@ export class Main extends Template {
|
||||
p.award(sign.content.jinBeanNum, 'bean')
|
||||
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({
|
||||
'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`,
|
||||
json: [{
|
||||
"pin": "",
|
||||
clientIp: "$cooMrdGatewayIp$",
|
||||
"userMangroveDevelopId": mangrove.content.id,
|
||||
"mangroveInteractiveId": mangrove.content.mangroveInteractiveDto.id
|
||||
}],
|
||||
|
||||
Loading…
Reference in New Issue
Block a user