mirror of
https://github.com/qitoqito/psyduck.git
synced 2026-01-15 15:10:44 +08:00
Update jd_task_jiadian.js
This commit is contained in:
parent
ca40df5dd2
commit
7a437cf761
@ -25,11 +25,10 @@ export class Main extends Template {
|
|||||||
let user = p.data.user;
|
let user = p.data.user;
|
||||||
let context = p.context;
|
let context = p.context;
|
||||||
let info = await this.curl({
|
let info = await this.curl({
|
||||||
'url': `https://api.m.jd.com/client.action?functionId=queryInteractiveInfo`,
|
|
||||||
'form': `appid=home-channel&functionId=queryInteractiveInfo&body={"encryptProjectId":"${context.encryptProjectId}","sourceCode":"ace454250"}`,
|
'form': `appid=home-channel&functionId=queryInteractiveInfo&body={"encryptProjectId":"${context.encryptProjectId}","sourceCode":"ace454250"}`,
|
||||||
user,
|
user,
|
||||||
algo: {
|
algo: {
|
||||||
appId: "684f0"
|
appId: "74333"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
@ -56,7 +55,7 @@ export class Main extends Template {
|
|||||||
'form': `appid=home-channel&functionId=home.zzj.DoTask.finishTask&body={"encryptAssignmentId":"${i.encryptAssignmentId}","itemId":"${itemId}","encryptProjectId":"${context.encryptProjectId}"}`,
|
'form': `appid=home-channel&functionId=home.zzj.DoTask.finishTask&body={"encryptAssignmentId":"${i.encryptAssignmentId}","itemId":"${itemId}","encryptProjectId":"${context.encryptProjectId}"}`,
|
||||||
user,
|
user,
|
||||||
algo: {
|
algo: {
|
||||||
appId: '4afaa',
|
appId: '74333',
|
||||||
expire: {
|
expire: {
|
||||||
"code": 3,
|
"code": 3,
|
||||||
}
|
}
|
||||||
@ -87,8 +86,8 @@ export class Main extends Template {
|
|||||||
for (let j of extra.slice(0, i.assignmentTimesLimit)) {
|
for (let j of extra.slice(0, i.assignmentTimesLimit)) {
|
||||||
if (['shoppingActivity', 'productsInfo', 'browseShop', 'addCart', 'followShop', 'followChannel'].includes(extraType)) {
|
if (['shoppingActivity', 'productsInfo', 'browseShop', 'addCart', 'followShop', 'followChannel'].includes(extraType)) {
|
||||||
let fi = await this.curl({
|
let fi = await this.curl({
|
||||||
'url': `https://api.m.jd.com/client.action`,
|
url: "https://api.m.jd.com/client.action?functionId=home.zzj.DoTask.finishTask",
|
||||||
'form': `appid=home-channel&functionId=mt.zzj.DoTaskColorJsf.finishTask&body=${this.dumps(
|
'form': `appid=home-channel&functionId=home.zzj.DoTask.finishTask&body=${this.dumps(
|
||||||
{
|
{
|
||||||
"encryptAssignmentId": i.encryptAssignmentId,
|
"encryptAssignmentId": i.encryptAssignmentId,
|
||||||
"itemId": j.itemId,
|
"itemId": j.itemId,
|
||||||
@ -96,10 +95,13 @@ export class Main extends Template {
|
|||||||
}
|
}
|
||||||
)}`,
|
)}`,
|
||||||
user, algo: {
|
user, algo: {
|
||||||
appId: '4afaa',
|
appId: '74333',
|
||||||
expire: {
|
expire: {
|
||||||
"code": 3,
|
"code": 3,
|
||||||
}
|
},
|
||||||
|
error: {
|
||||||
|
code: 10003,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
@ -120,18 +122,22 @@ export class Main extends Template {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
let fi = await this.curl({
|
let fi = await this.curl({
|
||||||
'url': `https://api.m.jd.com/client.action`,
|
'url': `https://api.m.jd.com/client.action?functionId=home.zzj.DoTask.finishTask`,
|
||||||
'form': `appid=home-channel&functionId=mt.zzj.DoTaskColorJsf.finishTask&body=${this.dumps(
|
'form': `appid=home-channel&functionId=home.zzj.DoTask.finishTask&body=${this.dumps(
|
||||||
{
|
{
|
||||||
"encryptAssignmentId": i.encryptAssignmentId,
|
"encryptAssignmentId": i.encryptAssignmentId,
|
||||||
"itemId": 1,
|
"itemId": 1,
|
||||||
"encryptProjectId": context.encryptProjectId
|
"encryptProjectId": context.encryptProjectId
|
||||||
}
|
}
|
||||||
)}`,
|
)}`,
|
||||||
user, algo: {
|
user,
|
||||||
appId: '4afaa',
|
algo: {
|
||||||
|
appId: '74333',
|
||||||
expire: {
|
expire: {
|
||||||
"code": 3,
|
"code": 3,
|
||||||
|
},
|
||||||
|
error: {
|
||||||
|
code: 10003,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -152,7 +158,7 @@ export class Main extends Template {
|
|||||||
// console.log(i)
|
// console.log(i)
|
||||||
let fi = await this.curl({
|
let fi = await this.curl({
|
||||||
'url': `https://api.m.jd.com/client.action`,
|
'url': `https://api.m.jd.com/client.action`,
|
||||||
'form': `appid=home-channel&functionId=mt.zzj.DoTaskColorJsf.finishTask&body=${this.dumps(
|
'form': `appid=home-channel&functionId=home.zzj.DoTask.finishTask&body=${this.dumps(
|
||||||
{
|
{
|
||||||
"encryptAssignmentId": i.encryptAssignmentId,
|
"encryptAssignmentId": i.encryptAssignmentId,
|
||||||
"itemId": 1,
|
"itemId": 1,
|
||||||
@ -160,9 +166,12 @@ export class Main extends Template {
|
|||||||
}
|
}
|
||||||
)}`,
|
)}`,
|
||||||
user, algo: {
|
user, algo: {
|
||||||
appId: '4afaa',
|
appId: '74333',
|
||||||
expire: {
|
expire: {
|
||||||
"code": 3,
|
"code": 3,
|
||||||
|
},
|
||||||
|
error: {
|
||||||
|
code: 10003,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user