mirror of
https://github.com/qitoqito/psyduck.git
synced 2026-01-18 00:20:43 +08:00
Compare commits
4 Commits
894f7a2d52
...
e740b737e0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e740b737e0 | ||
|
|
f9a83883e5 | ||
|
|
7cb7c503ec | ||
|
|
e08e74ba57 |
@ -36,6 +36,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
referer: "https://prodev.m.jd.com/",
|
referer: "https://prodev.m.jd.com/",
|
||||||
|
url: "https://api.m.jd.com/api",
|
||||||
timer: {
|
timer: {
|
||||||
params: {
|
params: {
|
||||||
'url':
|
'url':
|
||||||
|
|||||||
@ -21,7 +21,10 @@ export class Main extends Template {
|
|||||||
let xs = []
|
let xs = []
|
||||||
let s = await this.curl({
|
let s = await this.curl({
|
||||||
'url': `https://api.m.jd.com/?appid=jd-cphdeveloper-m&functionId=myBean&body={"tenantCode":"jgminise","bizModelCode":6,"bizModeClientType":"WxMiniProgram","externalLoginType":1}&sceneval=2&g_login_type=1&callback=draw_activetemporary&g_tk=610895985&g_ty=ls`,
|
'url': `https://api.m.jd.com/?appid=jd-cphdeveloper-m&functionId=myBean&body={"tenantCode":"jgminise","bizModelCode":6,"bizModeClientType":"WxMiniProgram","externalLoginType":1}&sceneval=2&g_login_type=1&callback=draw_activetemporary&g_tk=610895985&g_ty=ls`,
|
||||||
user
|
user,
|
||||||
|
algo: {
|
||||||
|
expire: {"code": "1001"}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
if (this.haskey(s, 'list')) {
|
if (this.haskey(s, 'list')) {
|
||||||
|
|||||||
@ -22,7 +22,12 @@ export class Main extends Template {
|
|||||||
let user = p.data.user;
|
let user = p.data.user;
|
||||||
let s = await this.curl({
|
let s = await this.curl({
|
||||||
'url': `https://api.m.jd.com/client.action?functionId=chatReward_doReward&appid=wechat_activity&client=h5&body={"activityId":"${p.context.activityId}"}`,
|
'url': `https://api.m.jd.com/client.action?functionId=chatReward_doReward&appid=wechat_activity&client=h5&body={"activityId":"${p.context.activityId}"}`,
|
||||||
user
|
user,
|
||||||
|
algo: {
|
||||||
|
expire: {
|
||||||
|
"subCode": 103
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
let reward = await this.curl({
|
let reward = await this.curl({
|
||||||
|
|||||||
@ -45,7 +45,10 @@ export class Main extends Template {
|
|||||||
'form': `loginType=11&clientType=wxapp&client=apple&clientVersion=9.23.140&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_queryMyRights&t=1731719821597&body={}&appid=hot_channel&d_name=`,
|
'form': `loginType=11&clientType=wxapp&client=apple&clientVersion=9.23.140&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_queryMyRights&t=1731719821597&body={}&appid=hot_channel&d_name=`,
|
||||||
user,
|
user,
|
||||||
algo: {
|
algo: {
|
||||||
appId: '1221c'
|
appId: '1221c',
|
||||||
|
expire: {
|
||||||
|
"subCode": 102
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|||||||
@ -18,13 +18,14 @@ export class Main extends Template {
|
|||||||
let list = await this.curl({
|
let list = await this.curl({
|
||||||
'url': `https://api.m.jd.com/api?functionId=dwapp_task_dwList`,
|
'url': `https://api.m.jd.com/api?functionId=dwapp_task_dwList`,
|
||||||
'form': `appid=h5-sep&body=${this.dumps(await this.cmd5x())}&client=m&clientVersion=6.0.0`,
|
'form': `appid=h5-sep&body=${this.dumps(await this.cmd5x())}&client=m&clientVersion=6.0.0`,
|
||||||
user
|
user,
|
||||||
|
algo: {
|
||||||
|
expire: {
|
||||||
|
'code': 201
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
if (this.haskey(list, 'code', 201)) {
|
|
||||||
p.err("未登录")
|
|
||||||
return
|
|
||||||
}
|
|
||||||
let cash = 0
|
let cash = 0
|
||||||
for (let i of this.haskey(list, 'data') || []) {
|
for (let i of this.haskey(list, 'data') || []) {
|
||||||
if (i.viewStatus == 3 || i.viewStatus == 1) {
|
if (i.viewStatus == 3 || i.viewStatus == 1) {
|
||||||
|
|||||||
@ -48,7 +48,10 @@ export class Main extends Template {
|
|||||||
'form': `cthr=1&client=h5&clientVersion=&t=1741106496828&loginWQBiz=&appid=mygiftcard&functionId=personalCenterReceiveHolderEquity&body={"ruleId":"${context.ruleId}","pid":"${context.pid}","eid":"FQ7Z2DTGYZSJM5FKY${this.rand(10, 99)}JLAURRHP2UZHK2ID7554EMNWWNNSK3JBCTLTR45IOP3Z5K3YJHOG${this.rand(10, 99)}SJAOB${this.rand(10, 99)}KVS3RH7G2U"}`,
|
'form': `cthr=1&client=h5&clientVersion=&t=1741106496828&loginWQBiz=&appid=mygiftcard&functionId=personalCenterReceiveHolderEquity&body={"ruleId":"${context.ruleId}","pid":"${context.pid}","eid":"FQ7Z2DTGYZSJM5FKY${this.rand(10, 99)}JLAURRHP2UZHK2ID7554EMNWWNNSK3JBCTLTR45IOP3Z5K3YJHOG${this.rand(10, 99)}SJAOB${this.rand(10, 99)}KVS3RH7G2U"}`,
|
||||||
user,
|
user,
|
||||||
algo: {
|
algo: {
|
||||||
appId: 'aea58'
|
appId: 'aea58',
|
||||||
|
expire: {
|
||||||
|
"error": "NotLogin"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|||||||
@ -61,9 +61,6 @@ export class Main extends Template {
|
|||||||
async main(p) {
|
async main(p) {
|
||||||
let user = p.data.user;
|
let user = p.data.user;
|
||||||
let context = p.context;
|
let context = p.context;
|
||||||
if (this.turnCount == 0) {
|
|
||||||
p.context.complete = true
|
|
||||||
}
|
|
||||||
if (this.turnCount == 0) {
|
if (this.turnCount == 0) {
|
||||||
if (this.turnCount == 0) {
|
if (this.turnCount == 0) {
|
||||||
let signIn = await this.curl({
|
let signIn = await this.curl({
|
||||||
|
|||||||
@ -21,7 +21,10 @@ export class Main extends Template {
|
|||||||
user,
|
user,
|
||||||
algo: {
|
algo: {
|
||||||
appId: '73c2f',
|
appId: '73c2f',
|
||||||
type: 'wechat'
|
type: 'wechat',
|
||||||
|
expire: {
|
||||||
|
"code": "3"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
referer: 'https://bean.jd.com/myJingBean/list',
|
referer: 'https://bean.jd.com/myJingBean/list',
|
||||||
ua: "Mozilla/5.0(WindowsNT10.0;Win64;x64)AppleWebKit/537.36(KHTML,likeGecko)Chrome/" + 59 + Math.round(Math.random() * 10) + ".0.3497." + Math.round(Math.random() * 100) + "Safari/537.36",
|
ua: "Mozilla/5.0(WindowsNT10.0;Win64;x64)AppleWebKit/537.36(KHTML,likeGecko)Chrome/" + 59 + Math.round(Math.random() * 10) + ".0.3497." + Math.round(Math.random() * 100) + "Safari/537.36",
|
||||||
|
|||||||
@ -57,6 +57,9 @@ export class Main extends Template {
|
|||||||
user,
|
user,
|
||||||
algo: {
|
algo: {
|
||||||
'appId': 'd246a',
|
'appId': 'd246a',
|
||||||
|
expire: {
|
||||||
|
"code": "3"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|||||||
@ -62,6 +62,11 @@ export class Main extends Template {
|
|||||||
headers: {
|
headers: {
|
||||||
'referer': 'https://servicewechat.com/wx91d27dbf599dff74/747/page-frame.html',
|
'referer': 'https://servicewechat.com/wx91d27dbf599dff74/747/page-frame.html',
|
||||||
'user-agnet': 'wechat'
|
'user-agnet': 'wechat'
|
||||||
|
},
|
||||||
|
algo: {
|
||||||
|
expire: {
|
||||||
|
"code": "3",
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
if (drawShopGift) {
|
if (drawShopGift) {
|
||||||
|
|||||||
@ -35,6 +35,9 @@ export class Main extends Template {
|
|||||||
appId: 'e2224',
|
appId: 'e2224',
|
||||||
log: true,
|
log: true,
|
||||||
// code: ['0']
|
// code: ['0']
|
||||||
|
expire: {
|
||||||
|
"subCode": "300"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|||||||
@ -34,7 +34,10 @@ export class Main extends Template {
|
|||||||
'form': `appid=jd-super-market&t=1713230766545&functionId=atop_channel_sign_in&client=m&uuid=de21c6604748f97dd3977153e51a47f4efdb9a47&body={"signToken":"${signToken}","channelFollowStatus":1,"bizCode":"cn_retail_jdsupermarket","scenario":"sign","babelChannel":"ttt1","isJdApp":"1","isWx":"0"}`,
|
'form': `appid=jd-super-market&t=1713230766545&functionId=atop_channel_sign_in&client=m&uuid=de21c6604748f97dd3977153e51a47f4efdb9a47&body={"signToken":"${signToken}","channelFollowStatus":1,"bizCode":"cn_retail_jdsupermarket","scenario":"sign","babelChannel":"ttt1","isJdApp":"1","isWx":"0"}`,
|
||||||
user,
|
user,
|
||||||
algo: {
|
algo: {
|
||||||
appId: 'b8fc7'
|
appId: 'b8fc7',
|
||||||
|
expire: {
|
||||||
|
"code": "11001"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user