mirror of
https://github.com/qitoqito/psyduck.git
synced 2026-01-19 17:19:37 +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;
|
let context = p.context;
|
||||||
var expire = 0
|
var expire = 0
|
||||||
if (this.haskey(this.profile, 'change', 'all')) {
|
if (this.haskey(this.profile, 'change', 'all')) {
|
||||||
expire = 2
|
expire = 1
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
let s = await this.curl({
|
let s = await this.curl({
|
||||||
@ -111,11 +111,11 @@ export class Main extends Template {
|
|||||||
p.msg("openKey生成失败")
|
p.msg("openKey生成失败")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (expire == 1) {
|
else if (!userData.wskey) {
|
||||||
p.msg("账号过期了呀🐶")
|
p.log("没有wskey")
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
p.log("没有wskey")
|
p.msg("账号过期了呀🐶")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -231,7 +231,6 @@ export class Main extends Template {
|
|||||||
p.log("任务失败:", this.haskey(doTask, 'errMsg') || doTask)
|
p.log("任务失败:", this.haskey(doTask, 'errMsg') || doTask)
|
||||||
}
|
}
|
||||||
if (i.canDrawAwardNum) {
|
if (i.canDrawAwardNum) {
|
||||||
for (let kkk of Array(i.canDrawAwardNum)) {
|
|
||||||
let award = await this.curl({
|
let award = await this.curl({
|
||||||
'url': `https://api.m.jd.com/api?functionId=apTaskDrawAward`,
|
'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`,
|
'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`,
|
||||||
@ -247,8 +246,6 @@ export class Main extends Template {
|
|||||||
else {
|
else {
|
||||||
p.err("抽奖领取失败")
|
p.err("抽奖领取失败")
|
||||||
}
|
}
|
||||||
await this.wait(1000)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@ -310,7 +307,6 @@ export class Main extends Template {
|
|||||||
p.log("任务失败:", this.haskey(doTask, 'errMsg') || doTask)
|
p.log("任务失败:", this.haskey(doTask, 'errMsg') || doTask)
|
||||||
}
|
}
|
||||||
if (i.canDrawAwardNum) {
|
if (i.canDrawAwardNum) {
|
||||||
for (let kkk of Array(i.canDrawAwardNum)) {
|
|
||||||
let award = await this.curl({
|
let award = await this.curl({
|
||||||
'url': `https://api.m.jd.com/api?functionId=apTaskDrawAward`,
|
'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`,
|
'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`,
|
||||||
@ -327,8 +323,7 @@ export class Main extends Template {
|
|||||||
p.err("抽奖领取失败")
|
p.err("抽奖领取失败")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
await this.wait(1000)
|
await this.wait(3000)
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -352,7 +347,6 @@ export class Main extends Template {
|
|||||||
for (let i of this.haskey(apTask, 'data')) {
|
for (let i of this.haskey(apTask, 'data')) {
|
||||||
if (i.taskLimitTimes == i.taskDoTimes) {
|
if (i.taskLimitTimes == i.taskDoTimes) {
|
||||||
if (i.canDrawAwardNum) {
|
if (i.canDrawAwardNum) {
|
||||||
for (let kkk of Array(i.canDrawAwardNum)) {
|
|
||||||
let award = await this.curl({
|
let award = await this.curl({
|
||||||
'url': `https://api.m.jd.com/api?functionId=apTaskDrawAward`,
|
'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`,
|
'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`,
|
||||||
@ -374,7 +368,6 @@ export class Main extends Template {
|
|||||||
await this.wait(1000)
|
await this.wait(1000)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
else {
|
else {
|
||||||
switch (i.taskType) {
|
switch (i.taskType) {
|
||||||
case'ORDER_MARK':
|
case'ORDER_MARK':
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user