mirror of
https://github.com/qitoqito/psyduck.git
synced 2026-01-16 07:30:43 +08:00
Compare commits
2 Commits
227ecf67a3
...
e30c2d4930
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e30c2d4930 | ||
|
|
3ace142761 |
@ -21,16 +21,6 @@ export class Main extends Template {
|
||||
let user = p.data.user;
|
||||
let context = p.context;
|
||||
this.dict[user] = {}
|
||||
let curl = this.curl
|
||||
let reports = setInterval(async function f() {
|
||||
p.log(`正在上报游戏信息...`)
|
||||
let report = await curl({
|
||||
'url': `functionId=gameHeartbeat&body={"linkId":"${context.linkId}"}&t=1741137369937&appid=activities_platform&client=ios&clientVersion=15.0.25`,
|
||||
user,
|
||||
delay: 10,
|
||||
}
|
||||
)
|
||||
}, 5000)
|
||||
await this.curl({
|
||||
'url': `https://api.m.jd.com/api`,
|
||||
'form': `appid=risk_h5_info&functionId=reportInvokeLog&body={"sdkClient":"handler","sdkVersion":"1.1.0","url":"aHR0cHM6Ly9qb3lwYXJrLmpkLmNvbS8","timestamp":${new Date().getTime()}}`,
|
||||
@ -258,7 +248,6 @@ export class Main extends Template {
|
||||
}
|
||||
}
|
||||
p.info.work = true
|
||||
clearInterval(reports)
|
||||
}
|
||||
|
||||
async one(p) {
|
||||
@ -667,6 +656,12 @@ export class Main extends Template {
|
||||
let user = p.data.user
|
||||
let context = p.context
|
||||
this.dict[user] = {}
|
||||
await this.curl({
|
||||
'form': `functionId=gameHeartbeat&body={"businessCode":1,"linkId":"${context.linkId}"}&t=1741137369937&appid=activities_platform&client=ios&clientVersion=15.0.25`,
|
||||
user,
|
||||
delay: 10,
|
||||
}
|
||||
)
|
||||
let baseInfo = await this.curl({
|
||||
'url': `https://api.m.jd.com/api?functionId=joyBaseInfo`,
|
||||
'form': `functionId=joyBaseInfo&body={"taskId":"","inviteType":"","inviterPin":"","linkId":"${context.linkId}"}&t=1741137369937&appid=activities_platform&client=ios&clientVersion=15.0.25`,
|
||||
|
||||
@ -21,16 +21,6 @@ export class Main extends Template {
|
||||
let user = p.data.user;
|
||||
let context = p.context;
|
||||
this.dict[user] = {}
|
||||
let curl = this.curl
|
||||
let reports = setInterval(async function f() {
|
||||
p.log(`正在上报游戏信息...`)
|
||||
let report = await curl({
|
||||
'url': `functionId=gameHeartbeat&body={"linkId":"${context.linkId}"}&t=1741137369937&appid=activities_platform&client=ios&clientVersion=15.0.25`,
|
||||
user,
|
||||
delay: 10,
|
||||
}
|
||||
)
|
||||
}, 5000)
|
||||
await this.curl({
|
||||
'url': `https://api.m.jd.com/api`,
|
||||
'form': `appid=risk_h5_info&functionId=reportInvokeLog&body={"sdkClient":"handler","sdkVersion":"1.1.0","url":"aHR0cHM6Ly9qb3lwYXJrLmpkLmNvbS8","timestamp":${new Date().getTime()}}`,
|
||||
@ -274,7 +264,6 @@ export class Main extends Template {
|
||||
}
|
||||
}
|
||||
p.info.work = true
|
||||
clearInterval(reports)
|
||||
}
|
||||
|
||||
async one(p) {
|
||||
@ -683,6 +672,12 @@ export class Main extends Template {
|
||||
let user = p.data.user
|
||||
let context = p.context
|
||||
this.dict[user] = {}
|
||||
await this.curl({
|
||||
'form': `functionId=gameHeartbeat&body={"businessCode":1,"linkId":"${context.linkId}"}&t=1741137369937&appid=activities_platform&client=ios&clientVersion=15.0.25`,
|
||||
user,
|
||||
delay: 10,
|
||||
}
|
||||
)
|
||||
let baseInfo = await this.curl({
|
||||
'url': `https://api.m.jd.com/api?functionId=joyBaseInfo`,
|
||||
'form': `functionId=joyBaseInfo&body={"taskId":"","inviteType":"","inviterPin":"","linkId":"${context.linkId}"}&t=1741137369937&appid=activities_platform&client=ios&clientVersion=15.0.25`,
|
||||
|
||||
@ -142,7 +142,7 @@ export class Main extends Template {
|
||||
}
|
||||
let count = skus.length + packs.length
|
||||
let exceed = parseInt(this.profile.exceed || 0)
|
||||
if (exceed && exceed<count) {
|
||||
if (exceed && exceed>count) {
|
||||
p.info.work = true
|
||||
p.log(`当前购物车数量: ${count},小于指定数量,跳过运行`)
|
||||
return
|
||||
|
||||
Loading…
Reference in New Issue
Block a user