mirror of
https://github.com/qitoqito/psyduck.git
synced 2026-01-15 15:10:44 +08:00
Update jd_task_smGame.js
This commit is contained in:
parent
35d009caf6
commit
992ec19573
@ -32,17 +32,26 @@ export class Main extends Template {
|
|||||||
user
|
user
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
let getToken = await this.curl({
|
for (let i of Array(2)) {
|
||||||
'url': `https://api.m.jd.com/api/arvr_getRequestToken`,
|
var getToken = await this.curl({
|
||||||
'form': `appid=commonActivity&functionId=arvr_getRequestToken&body=${this.getBody({
|
'url': `https://api.m.jd.com/api/arvr_getRequestToken`,
|
||||||
"rewardType": 6,
|
'form': `appid=commonActivity&functionId=arvr_getRequestToken&body=${this.getBody({
|
||||||
"activityId": "ba6e852dd2bc05a1de75b2d2dc9fda305096bcc0",
|
"rewardType": 6,
|
||||||
"appId": "app_440",
|
"activityId": "ba6e852dd2bc05a1de75b2d2dc9fda305096bcc0",
|
||||||
})}&t=1713402797485`,
|
"appId": "app_440",
|
||||||
user
|
})}&t=1713402797485`,
|
||||||
|
user
|
||||||
|
}
|
||||||
|
)
|
||||||
|
if (this.haskey(getToken, 'data')) {
|
||||||
|
break
|
||||||
}
|
}
|
||||||
)
|
}
|
||||||
let accessToken = this.haskey(getToken, 'data')
|
let accessToken = this.haskey(getToken, 'data')
|
||||||
|
if (!accessToken) {
|
||||||
|
p.err("获取accessToken失败...")
|
||||||
|
return
|
||||||
|
}
|
||||||
// 奖项目-正式
|
// 奖项目-正式
|
||||||
let info3 = await this.curl({
|
let info3 = await this.curl({
|
||||||
'url': `https://api.m.jd.com/api/arvr_queryInteractiveInfoNew`,
|
'url': `https://api.m.jd.com/api/arvr_queryInteractiveInfoNew`,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user