mirror of
https://github.com/qitoqito/psyduck.git
synced 2026-01-18 16:50:45 +08:00
Compare commits
No commits in common. "4c673773439de2ca5f59d2a944346412e80269c7" and "d7678ecf35cd60435494d4c04744059c5ccdf1cd" have entirely different histories.
4c67377343
...
d7678ecf35
@ -112,7 +112,7 @@ export class Main extends Template {
|
|||||||
bean.today = [this.sum(xsa) || 0, this.sum(xsb) || 0]
|
bean.today = [this.sum(xsa) || 0, this.sum(xsb) || 0]
|
||||||
bean.yesterday = [this.sum(ysa) || 0, this.sum(ysb) || 0]
|
bean.yesterday = [this.sum(ysa) || 0, this.sum(ysb) || 0]
|
||||||
if (this.haskey(c, 'data.beanAmount')) {
|
if (this.haskey(c, 'data.beanAmount')) {
|
||||||
bean.expireBean = c.data.expireSoonNum
|
bean.expire = c.data.expireSoonNum
|
||||||
bean.all = c.data.beanAmount
|
bean.all = c.data.beanAmount
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@ -125,7 +125,7 @@ export class Main extends Template {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
if (this.haskey(b, 'others')) {
|
if (this.haskey(b, 'others')) {
|
||||||
bean.expire = this.haskey(b, 'others.jingBeanExpiringInfo.detailList')
|
bean.expireBean = this.haskey(b, 'others.jingBeanExpiringInfo.detailList')
|
||||||
bean.all = this.haskey(b, 'others.jingBeanBalance.jingBeanCount')
|
bean.all = this.haskey(b, 'others.jingBeanBalance.jingBeanCount')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -79,15 +79,12 @@ export class Main extends Template {
|
|||||||
})
|
})
|
||||||
if (this.haskey(dd, 'success')) {
|
if (this.haskey(dd, 'success')) {
|
||||||
p.log('任务完成:', dd.success)
|
p.log('任务完成:', dd.success)
|
||||||
if (!p.info.balck) {
|
await this.baseInfo(p)
|
||||||
await this.baseInfo(p)
|
await this.two(p)
|
||||||
await this.two(p)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
break
|
break
|
||||||
case 'BROWSE_CHANNEL':
|
case 'BROWSE_CHANNEL':
|
||||||
case 'BROWSE_PRODUCT':
|
case 'BROWSE_PRODUCT':
|
||||||
case 'BROWSE_RTB':
|
|
||||||
let detail = await this.curl({
|
let detail = await this.curl({
|
||||||
'url': `https://api.m.jd.com/`,
|
'url': `https://api.m.jd.com/`,
|
||||||
'form': `functionId=apTaskDetail&body={"taskType":"${i.taskType}","taskId":${i.id},"openUdId":"","cityId":"1234","provinceId":"16","countyId":"1234","channel":4,"linkId":"${context.linkId}"}&t=1741137369937&appid=activities_platform&client=ios&clientVersion=15.0.25`,
|
'form': `functionId=apTaskDetail&body={"taskType":"${i.taskType}","taskId":${i.id},"openUdId":"","cityId":"1234","provinceId":"16","countyId":"1234","channel":4,"linkId":"${context.linkId}"}&t=1741137369937&appid=activities_platform&client=ios&clientVersion=15.0.25`,
|
||||||
@ -113,10 +110,8 @@ export class Main extends Template {
|
|||||||
})
|
})
|
||||||
if (this.haskey(d, 'success')) {
|
if (this.haskey(d, 'success')) {
|
||||||
p.log('任务完成:', d.success)
|
p.log('任务完成:', d.success)
|
||||||
if (!p.info.balck) {
|
await this.baseInfo(p)
|
||||||
await this.baseInfo(p)
|
await this.two(p)
|
||||||
await this.two(p)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@ -144,10 +139,8 @@ export class Main extends Template {
|
|||||||
})
|
})
|
||||||
if (this.haskey(d, 'success')) {
|
if (this.haskey(d, 'success')) {
|
||||||
p.log('任务完成:', d.success)
|
p.log('任务完成:', d.success)
|
||||||
if (!p.info.balck) {
|
await this.baseInfo(p)
|
||||||
await this.baseInfo(p)
|
await this.two(p)
|
||||||
await this.two(p)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@ -408,9 +401,6 @@ export class Main extends Template {
|
|||||||
}
|
}
|
||||||
for (let i in this.dict[user].joy) {
|
for (let i in this.dict[user].joy) {
|
||||||
if (this.dict[user].joy[i] && this.dict[user].joy[i].length % 2 == 1 && i<this.dict[user].buyLevel) {
|
if (this.dict[user].joy[i] && this.dict[user].joy[i].length % 2 == 1 && i<this.dict[user].buyLevel) {
|
||||||
if (!this.dict[user].shop) {
|
|
||||||
await this.shopList(p)
|
|
||||||
}
|
|
||||||
let joyInfo = this.dict[user].shop[i]
|
let joyInfo = this.dict[user].shop[i]
|
||||||
if (joyInfo && this.dict[user].coin>0 && joyInfo.consume>0 && joyInfo.consume<this.dict[user].coin) {
|
if (joyInfo && this.dict[user].coin>0 && joyInfo.consume>0 && joyInfo.consume<this.dict[user].coin) {
|
||||||
if (this.dict[user].number>9) {
|
if (this.dict[user].number>9) {
|
||||||
@ -632,7 +622,6 @@ export class Main extends Template {
|
|||||||
if (this.haskey(baseInfo, 'errMsg', 'blackfail')) {
|
if (this.haskey(baseInfo, 'errMsg', 'blackfail')) {
|
||||||
p.log("狗子在小黑屋里面...")
|
p.log("狗子在小黑屋里面...")
|
||||||
p.info.jump = true
|
p.info.jump = true
|
||||||
p.info.black = true
|
|
||||||
return {
|
return {
|
||||||
error: 1
|
error: 1
|
||||||
}
|
}
|
||||||
|
|||||||
@ -79,15 +79,12 @@ export class Main extends Template {
|
|||||||
})
|
})
|
||||||
if (this.haskey(dd, 'success')) {
|
if (this.haskey(dd, 'success')) {
|
||||||
p.log('任务完成:', dd.success)
|
p.log('任务完成:', dd.success)
|
||||||
if (!p.info.balck) {
|
await this.baseInfo(p)
|
||||||
await this.baseInfo(p)
|
await this.two(p)
|
||||||
await this.two(p)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
break
|
break
|
||||||
case 'BROWSE_CHANNEL':
|
case 'BROWSE_CHANNEL':
|
||||||
case 'BROWSE_PRODUCT':
|
case 'BROWSE_PRODUCT':
|
||||||
case 'BROWSE_RTB':
|
|
||||||
let detail = await this.curl({
|
let detail = await this.curl({
|
||||||
'url': `https://api.m.jd.com/`,
|
'url': `https://api.m.jd.com/`,
|
||||||
'form': `functionId=apTaskDetail&body={"taskType":"${i.taskType}","taskId":${i.id},"openUdId":"","cityId":"1234","provinceId":"16","countyId":"1234","channel":4,"linkId":"${context.linkId}"}&t=1741137369937&appid=activities_platform&client=ios&clientVersion=15.0.25`,
|
'form': `functionId=apTaskDetail&body={"taskType":"${i.taskType}","taskId":${i.id},"openUdId":"","cityId":"1234","provinceId":"16","countyId":"1234","channel":4,"linkId":"${context.linkId}"}&t=1741137369937&appid=activities_platform&client=ios&clientVersion=15.0.25`,
|
||||||
@ -140,10 +137,8 @@ export class Main extends Template {
|
|||||||
appId: "55276"
|
appId: "55276"
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
if (!p.info.balck) {
|
await this.baseInfo(p)
|
||||||
await this.baseInfo(p)
|
await this.two(p)
|
||||||
await this.two(p)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else if (this.haskey(doTask, 'code', 2031)) {
|
else if (this.haskey(doTask, 'code', 2031)) {
|
||||||
p.log("任务失败:", this.haskey(doTask, 'errMsg') || doTask)
|
p.log("任务失败:", this.haskey(doTask, 'errMsg') || doTask)
|
||||||
@ -176,10 +171,8 @@ export class Main extends Template {
|
|||||||
})
|
})
|
||||||
if (this.haskey(d, 'success')) {
|
if (this.haskey(d, 'success')) {
|
||||||
p.log('任务完成:', d.success)
|
p.log('任务完成:', d.success)
|
||||||
if (!p.info.balck) {
|
await this.baseInfo(p)
|
||||||
await this.baseInfo(p)
|
await this.two(p)
|
||||||
await this.two(p)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@ -462,9 +455,6 @@ export class Main extends Template {
|
|||||||
}
|
}
|
||||||
for (let i in this.dict[user].joy) {
|
for (let i in this.dict[user].joy) {
|
||||||
if (this.dict[user].joy[i] && this.dict[user].joy[i].length % 2 == 1 && i<this.dict[user].buyLevel) {
|
if (this.dict[user].joy[i] && this.dict[user].joy[i].length % 2 == 1 && i<this.dict[user].buyLevel) {
|
||||||
if (!this.dict[user].shop) {
|
|
||||||
await this.shopList(p)
|
|
||||||
}
|
|
||||||
let joyInfo = this.dict[user].shop[i]
|
let joyInfo = this.dict[user].shop[i]
|
||||||
if (joyInfo && this.dict[user].coin>0 && joyInfo.consume>0 && joyInfo.consume<this.dict[user].coin) {
|
if (joyInfo && this.dict[user].coin>0 && joyInfo.consume>0 && joyInfo.consume<this.dict[user].coin) {
|
||||||
if (this.dict[user].number>9) {
|
if (this.dict[user].number>9) {
|
||||||
@ -686,7 +676,6 @@ export class Main extends Template {
|
|||||||
if (this.haskey(baseInfo, 'errMsg', 'blackfail')) {
|
if (this.haskey(baseInfo, 'errMsg', 'blackfail')) {
|
||||||
p.log("牛牛在小黑屋里面...")
|
p.log("牛牛在小黑屋里面...")
|
||||||
p.info.jump = true
|
p.info.jump = true
|
||||||
p.info.black = true
|
|
||||||
return {
|
return {
|
||||||
error: 1
|
error: 1
|
||||||
}
|
}
|
||||||
|
|||||||
@ -38,7 +38,7 @@ export class Main extends Template {
|
|||||||
p.log("已签到..")
|
p.log("已签到..")
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
st = 0
|
status = 0
|
||||||
let sign = await this.curl({
|
let sign = await this.curl({
|
||||||
'url': `https://api.m.jd.com/miniTask_doFarmSign?g_ty=ls&g_tk=1084416199`,
|
'url': `https://api.m.jd.com/miniTask_doFarmSign?g_ty=ls&g_tk=1084416199`,
|
||||||
'form': `loginType=2&clientType=wxapp&client=apple&clientVersion=10.14.110&build=&osVersion=iOS%2015.1.1&screen=390*844&networkType=wifi&d_brand=iPhone&d_model=iPhone%2012%20Pro%3CiPhone13%2C3%3E&lang=zh_CN&uuid=oCwKwuBoW0okKEIIDlT5FXxscxcM&functionId=miniTask_doFarmSign&t=1739945007901&body={}&appid=hot_channel`,
|
'form': `loginType=2&clientType=wxapp&client=apple&clientVersion=10.14.110&build=&osVersion=iOS%2015.1.1&screen=390*844&networkType=wifi&d_brand=iPhone&d_model=iPhone%2012%20Pro%3CiPhone13%2C3%3E&lang=zh_CN&uuid=oCwKwuBoW0okKEIIDlT5FXxscxcM&functionId=miniTask_doFarmSign&t=1739945007901&body={}&appid=hot_channel`,
|
||||||
@ -51,7 +51,7 @@ export class Main extends Template {
|
|||||||
)
|
)
|
||||||
if (this.haskey(sign, 'data.signStatus')) {
|
if (this.haskey(sign, 'data.signStatus')) {
|
||||||
p.log(`签到成功: 获得水滴: ${sign.data.awardNum}`)
|
p.log(`签到成功: 获得水滴: ${sign.data.awardNum}`)
|
||||||
st = 1
|
status = 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
let taskList = await this.curl({
|
let taskList = await this.curl({
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user