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
d43ca0ed24
commit
eebb8230d2
@ -36,7 +36,7 @@ export class Main extends Template {
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
if (this.haskey(home, 'content.mangroveFiveIntegral')) {
|
if (this.haskey(home, 'content.mangroveFiveIntegral')) {
|
||||||
p.log("当前京豆:", home.content.mangroveFiveIntegral)
|
p.log("当前养成京豆:", home.content.mangroveFiveIntegral)
|
||||||
}
|
}
|
||||||
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`,
|
||||||
@ -71,7 +71,7 @@ export class Main extends Template {
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
let interactiveTime = this.haskey(mangrove, 'content.interactiveTime')
|
let interactiveTime = this.haskey(mangrove, 'content.interactiveTime')
|
||||||
if (this.haskey(mangrove, 'content.id') && !interactiveTime) {
|
if (this.haskey(mangrove, 'content.id') && (!interactiveTime || interactiveTime<new Date().getTime())) {
|
||||||
let water = await this.curl({
|
let water = await this.curl({
|
||||||
'url': `https://lop-proxy.jd.com/UserMangroveApi/userMangroveInteractive`,
|
'url': `https://lop-proxy.jd.com/UserMangroveApi/userMangroveInteractive`,
|
||||||
json: [{
|
json: [{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user