mirror of
https://github.com/qitoqito/psyduck.git
synced 2026-01-18 00:20:43 +08:00
财富号任务bug
This commit is contained in:
parent
286f0f846a
commit
504519cdd9
@ -11,11 +11,12 @@ export class Main extends Template {
|
|||||||
interval: 2000,
|
interval: 2000,
|
||||||
crontab: 24,
|
crontab: 24,
|
||||||
prompt: {
|
prompt: {
|
||||||
change: `expired #只转换过期账户`
|
change: `expired #只转换过期账户`,
|
||||||
|
cache: `1 #如设置temp,当天有转换成功,后续运行将跳过该账号`
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async prepare() {
|
async prepare() {
|
||||||
if (this.haskey(this.profile, 'change', 'expired')) {
|
if (this.haskey(this.profile, 'change', 'expired')) {
|
||||||
let expired = await this.getExpire()
|
let expired = await this.getExpire()
|
||||||
@ -93,7 +94,9 @@ export class Main extends Template {
|
|||||||
if (y.cookie && y.cookie.includes('app_open')) {
|
if (y.cookie && y.cookie.includes('app_open')) {
|
||||||
this.dict[user] = y.cookie
|
this.dict[user] = y.cookie
|
||||||
p.log('openKey生成成功');
|
p.log('openKey生成成功');
|
||||||
p.info.work = true
|
if (this.profile.cache) {
|
||||||
|
p.info.work = true
|
||||||
|
}
|
||||||
this.valid(user, true)
|
this.valid(user, true)
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
@ -13,7 +13,7 @@ export class Main extends Template {
|
|||||||
prompt: {
|
prompt: {
|
||||||
appId: '活动id'
|
appId: '活动id'
|
||||||
},
|
},
|
||||||
crontab: 4,
|
crontab: 3,
|
||||||
verify: 1,
|
verify: 1,
|
||||||
tempExpire: 3600
|
tempExpire: 3600
|
||||||
}
|
}
|
||||||
@ -82,21 +82,21 @@ export class Main extends Template {
|
|||||||
}
|
}
|
||||||
let data = await this.getTemp(context.appId)
|
let data = await this.getTemp(context.appId)
|
||||||
if (!data) {
|
if (!data) {
|
||||||
let device2 = {
|
|
||||||
appId: p.appId,
|
|
||||||
"nodeId": p.nodeId,
|
|
||||||
"origin": "jindian",
|
|
||||||
deviceInfo: `{"jsToken":"","fp":"${this.md5(new Date().getTime().toString())}","sdkToken":"jdd016DZNHFZEX6ISWPRAZUKJDKGFIRQJ5MRXPZHLTK3ZIVKLBTD4SEZNDR6S${this.rand(10, 99)}JO2TLV${this.rand(10, 99)}HB5MV6JW52RVAZNXKEXXHGYDCX5MIJ7NSC4DY01234567","eid":"FQ7Z2DTGYZSJM5FKY${this.rand(10, 99)}JLAURRHP2UZHK2ID7554EMNWWNNSK3JBCTLTR45IOP3Z5K3YJHOG${this.rand(10, 99)}SJAOB${this.rand(10, 99)}KVS3RH7G2U","appType":1}`,
|
|
||||||
"isLoadMore": false, "pageNum": 1, "pageSize": 10, "channel": "5", "modelPreviewType": "1"
|
|
||||||
}
|
|
||||||
let list = await this.curl({
|
let list = await this.curl({
|
||||||
'url': `https://ms.jr.jd.com/gw2/generic/finshop/h5/m/selectJdActivityReceiveList`,
|
'url': `https://ms.jr.jd.com/gw2/generic/finshop/h5/m/queryFundPositionArray`,
|
||||||
form: `reqData=${this.dumps(device2)}`,
|
form: `reqData=${this.dumps({
|
||||||
cookie: this.tester()
|
appId: context.appId,
|
||||||
|
"nodeId": context.nodeId,
|
||||||
|
"origin": "jindian",
|
||||||
|
source: 0,
|
||||||
|
deviceInfo: `{"jsToken":"","fp":"${this.md5(new Date().getTime().toString())}","sdkToken":"jdd016DZNHFZEX6ISWPRAZUKJDKGFIRQJ5MRXPZHLTK3ZIVKLBTD4SEZNDR6S${this.rand(10, 99)}JO2TLV${this.rand(10, 99)}HB5MV6JW52RVAZNXKEXXHGYDCX5MIJ7NSC4DY01234567","eid":"FQ7Z2DTGYZSJM5FKY${this.rand(10, 99)}JLAURRHP2UZHK2ID7554EMNWWNNSK3JBCTLTR45IOP3Z5K3YJHOG${this.rand(10, 99)}SJAOB${this.rand(10, 99)}KVS3RH7G2U","appType":1}`,
|
||||||
|
"modelPreviewType": "1"
|
||||||
|
})}`,
|
||||||
|
user
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
if (this.haskey(list, 'resultData.data.jdReceivedList')) {
|
if (this.haskey(list, 'resultData.data.0.jdUnclaimedList')) {
|
||||||
data = list.resultData.data.jdReceivedList[0]
|
data = list.resultData.data[0].jdUnclaimedList[0]
|
||||||
await this.setTemp(context.appId, data)
|
await this.setTemp(context.appId, data)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -135,6 +135,7 @@ export class Main extends Template {
|
|||||||
else {
|
else {
|
||||||
p.err("没有获取到activityId")
|
p.err("没有获取到activityId")
|
||||||
}
|
}
|
||||||
|
a.window.close()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -6,6 +6,7 @@ export class Main extends Template {
|
|||||||
super()
|
super()
|
||||||
this.profile = {
|
this.profile = {
|
||||||
title: '京东财富号',
|
title: '京东财富号',
|
||||||
|
crontab: 3,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user