mirror of
https://github.com/qitoqito/psyduck.git
synced 2026-01-16 07:30:43 +08:00
Update jd_task_smGame.js
This commit is contained in:
parent
35d009caf6
commit
992ec19573
@ -32,7 +32,8 @@ export class Main extends Template {
|
|||||||
user
|
user
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
let getToken = await this.curl({
|
for (let i of Array(2)) {
|
||||||
|
var getToken = await this.curl({
|
||||||
'url': `https://api.m.jd.com/api/arvr_getRequestToken`,
|
'url': `https://api.m.jd.com/api/arvr_getRequestToken`,
|
||||||
'form': `appid=commonActivity&functionId=arvr_getRequestToken&body=${this.getBody({
|
'form': `appid=commonActivity&functionId=arvr_getRequestToken&body=${this.getBody({
|
||||||
"rewardType": 6,
|
"rewardType": 6,
|
||||||
@ -42,7 +43,15 @@ export class Main extends Template {
|
|||||||
user
|
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