mirror of
https://github.com/qitoqito/psyduck.git
synced 2026-01-17 08:00:43 +08:00
Compare commits
No commits in common. "905cb117257123167e24d5c145f5297d779d6657" and "e30c2d49304f50a830ddd3d4dddee6bdeb73f22b" have entirely different histories.
905cb11725
...
e30c2d4930
@ -38,7 +38,7 @@ export class Main extends Template {
|
||||
let context = p.context;
|
||||
var expire = 0
|
||||
if (this.haskey(this.profile, 'change', 'all')) {
|
||||
expire = 2
|
||||
expire = 1
|
||||
}
|
||||
else {
|
||||
let s = await this.curl({
|
||||
@ -111,11 +111,11 @@ export class Main extends Template {
|
||||
p.msg("openKey生成失败")
|
||||
}
|
||||
}
|
||||
else if (expire == 1) {
|
||||
p.msg("账号过期了呀🐶")
|
||||
else if (!userData.wskey) {
|
||||
p.log("没有wskey")
|
||||
}
|
||||
else {
|
||||
p.log("没有wskey")
|
||||
p.msg("账号过期了呀🐶")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -231,23 +231,20 @@ export class Main extends Template {
|
||||
p.log("任务失败:", this.haskey(doTask, 'errMsg') || doTask)
|
||||
}
|
||||
if (i.canDrawAwardNum) {
|
||||
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'
|
||||
}
|
||||
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("抽奖领取失败")
|
||||
}
|
||||
await this.wait(1000)
|
||||
)
|
||||
if (this.haskey(award, 'data')) {
|
||||
p.log(`抽奖次数+1`)
|
||||
}
|
||||
else {
|
||||
p.err("抽奖领取失败")
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -310,25 +307,23 @@ export class Main extends Template {
|
||||
p.log("任务失败:", this.haskey(doTask, 'errMsg') || doTask)
|
||||
}
|
||||
if (i.canDrawAwardNum) {
|
||||
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'
|
||||
}
|
||||
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)
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -352,27 +347,25 @@ export class Main extends Template {
|
||||
for (let i of this.haskey(apTask, 'data')) {
|
||||
if (i.taskLimitTimes == i.taskDoTimes) {
|
||||
if (i.canDrawAwardNum) {
|
||||
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
|
||||
}
|
||||
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`)
|
||||
}
|
||||
else {
|
||||
p.err("抽奖领取失败")
|
||||
}
|
||||
await this.wait(1000)
|
||||
)
|
||||
if (this.haskey(award, 'data')) {
|
||||
p.log(`抽奖次数+1`)
|
||||
}
|
||||
else {
|
||||
p.err("抽奖领取失败")
|
||||
}
|
||||
await this.wait(1000)
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user