mirror of
https://github.com/qitoqito/psyduck.git
synced 2026-01-16 15:40:42 +08:00
Compare commits
2 Commits
e30c2d4930
...
905cb11725
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
905cb11725 | ||
|
|
b0bd6a92ba |
@ -38,7 +38,7 @@ export class Main extends Template {
|
||||
let context = p.context;
|
||||
var expire = 0
|
||||
if (this.haskey(this.profile, 'change', 'all')) {
|
||||
expire = 1
|
||||
expire = 2
|
||||
}
|
||||
else {
|
||||
let s = await this.curl({
|
||||
@ -111,11 +111,11 @@ export class Main extends Template {
|
||||
p.msg("openKey生成失败")
|
||||
}
|
||||
}
|
||||
else if (!userData.wskey) {
|
||||
p.log("没有wskey")
|
||||
else if (expire == 1) {
|
||||
p.msg("账号过期了呀🐶")
|
||||
}
|
||||
else {
|
||||
p.msg("账号过期了呀🐶")
|
||||
p.log("没有wskey")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -231,20 +231,23 @@ export class Main extends Template {
|
||||
p.log("任务失败:", this.haskey(doTask, 'errMsg') || doTask)
|
||||
}
|
||||
if (i.canDrawAwardNum) {
|
||||
let award = await this.curl({
|
||||
'url': `https://api.m.jd.com/api?functionId=apTaskDrawAward`,
|
||||
'form': `functionId=apTaskDrawAward&body={"taskType":"${i.taskType}","taskId":${i.id},"channel":4,"checkVersion":true,"linkId":"${context.linkId}"}&t=1739360342034&appid=activities_platform&client=ios&clientVersion=15.0.11`,
|
||||
user,
|
||||
algo: {
|
||||
appId: 'f0f3f'
|
||||
for (let kkk of Array(i.canDrawAwardNum)) {
|
||||
let award = await this.curl({
|
||||
'url': `https://api.m.jd.com/api?functionId=apTaskDrawAward`,
|
||||
'form': `functionId=apTaskDrawAward&body={"taskType":"${i.taskType}","taskId":${i.id},"channel":4,"checkVersion":true,"linkId":"${context.linkId}"}&t=1739360342034&appid=activities_platform&client=ios&clientVersion=15.0.11`,
|
||||
user,
|
||||
algo: {
|
||||
appId: 'f0f3f'
|
||||
}
|
||||
}
|
||||
)
|
||||
if (this.haskey(award, 'data')) {
|
||||
p.log(`抽奖次数+1`)
|
||||
}
|
||||
)
|
||||
if (this.haskey(award, 'data')) {
|
||||
p.log(`抽奖次数+1`)
|
||||
}
|
||||
else {
|
||||
p.err("抽奖领取失败")
|
||||
else {
|
||||
p.err("抽奖领取失败")
|
||||
}
|
||||
await this.wait(1000)
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -307,23 +310,25 @@ export class Main extends Template {
|
||||
p.log("任务失败:", this.haskey(doTask, 'errMsg') || doTask)
|
||||
}
|
||||
if (i.canDrawAwardNum) {
|
||||
let award = await this.curl({
|
||||
'url': `https://api.m.jd.com/api?functionId=apTaskDrawAward`,
|
||||
'form': `functionId=apTaskDrawAward&body={"taskType":"${i.taskType}","taskId":${i.id},"channel":4,"checkVersion":true,"linkId":"${context.linkId}"}&t=1739360342034&appid=activities_platform&client=ios&clientVersion=15.0.11`,
|
||||
user,
|
||||
algo: {
|
||||
appId: 'f0f3f'
|
||||
for (let kkk of Array(i.canDrawAwardNum)) {
|
||||
let award = await this.curl({
|
||||
'url': `https://api.m.jd.com/api?functionId=apTaskDrawAward`,
|
||||
'form': `functionId=apTaskDrawAward&body={"taskType":"${i.taskType}","taskId":${i.id},"channel":4,"checkVersion":true,"linkId":"${context.linkId}"}&t=1739360342034&appid=activities_platform&client=ios&clientVersion=15.0.11`,
|
||||
user,
|
||||
algo: {
|
||||
appId: 'f0f3f'
|
||||
}
|
||||
}
|
||||
)
|
||||
if (this.haskey(award, 'data')) {
|
||||
p.log(`抽奖次数+1`)
|
||||
}
|
||||
else {
|
||||
p.err("抽奖领取失败")
|
||||
}
|
||||
)
|
||||
if (this.haskey(award, 'data')) {
|
||||
p.log(`抽奖次数+1`)
|
||||
}
|
||||
else {
|
||||
p.err("抽奖领取失败")
|
||||
}
|
||||
await this.wait(1000)
|
||||
}
|
||||
await this.wait(3000)
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -347,25 +352,27 @@ export class Main extends Template {
|
||||
for (let i of this.haskey(apTask, 'data')) {
|
||||
if (i.taskLimitTimes == i.taskDoTimes) {
|
||||
if (i.canDrawAwardNum) {
|
||||
let award = await this.curl({
|
||||
'url': `https://api.m.jd.com/api?functionId=apTaskDrawAward`,
|
||||
'form': `functionId=apTaskDrawAward&body={"taskType":"${i.taskType}","taskId":${i.id},"channel":4,"checkVersion":true,"linkId":"${context.linkId}"}&t=1739360342034&appid=activities_platform&client=ios&clientVersion=15.0.11`,
|
||||
user,
|
||||
algo: {
|
||||
appId: 'f0f3f',
|
||||
expire: {
|
||||
code: 1000
|
||||
for (let kkk of Array(i.canDrawAwardNum)) {
|
||||
let award = await this.curl({
|
||||
'url': `https://api.m.jd.com/api?functionId=apTaskDrawAward`,
|
||||
'form': `functionId=apTaskDrawAward&body={"taskType":"${i.taskType}","taskId":${i.id},"channel":4,"checkVersion":true,"linkId":"${context.linkId}"}&t=1739360342034&appid=activities_platform&client=ios&clientVersion=15.0.11`,
|
||||
user,
|
||||
algo: {
|
||||
appId: 'f0f3f',
|
||||
expire: {
|
||||
code: 1000
|
||||
}
|
||||
}
|
||||
}
|
||||
)
|
||||
if (this.haskey(award, 'data')) {
|
||||
p.log(`抽奖次数+1`)
|
||||
}
|
||||
)
|
||||
if (this.haskey(award, 'data')) {
|
||||
p.log(`抽奖次数+1`)
|
||||
else {
|
||||
p.err("抽奖领取失败")
|
||||
}
|
||||
await this.wait(1000)
|
||||
}
|
||||
else {
|
||||
p.err("抽奖领取失败")
|
||||
}
|
||||
await this.wait(1000)
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user