mirror of
https://github.com/qitoqito/psyduck.git
synced 2026-01-15 15:10:44 +08:00
Update jd_task_farmNew.js
This commit is contained in:
parent
0439958ab3
commit
af654d7f07
@ -123,10 +123,10 @@ export class Main extends Template {
|
|||||||
try {
|
try {
|
||||||
let skus = board.data.result.farmTreeLevels[2].farmLevelTrees[0]
|
let skus = board.data.result.farmTreeLevels[2].farmLevelTrees[0]
|
||||||
p.log("正在种树,选择商品:", skus.skuName)
|
p.log("正在种树,选择商品:", skus.skuName)
|
||||||
let tree = await this.curl({
|
let plantTree = await this.curl({
|
||||||
'url': `https://api.m.jd.com/client.action`,
|
'url': `https://api.m.jd.com/client.action`,
|
||||||
'form': `appid=signed_wh5&body=${this.dumps({
|
'form': `appid=signed_wh5&body=${this.dumps({
|
||||||
"version": 10,
|
"version": 13,
|
||||||
"channelParam": "1",
|
"channelParam": "1",
|
||||||
"uid": skus.uid,
|
"uid": skus.uid,
|
||||||
"type": "plantSku"
|
"type": "plantSku"
|
||||||
@ -134,6 +134,11 @@ export class Main extends Template {
|
|||||||
user,
|
user,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
let tree = await this.curl({
|
||||||
|
'form': `appid=signed_wh5&client=apple&clientVersion=15.0.11&body={"version":13,"channelParam":"1","level":3,"type":"plantLevel"}&functionId=farm_plant_tree`,
|
||||||
|
user
|
||||||
|
}
|
||||||
|
)
|
||||||
if (this.haskey(tree, 'data.success')) {
|
if (this.haskey(tree, 'data.success')) {
|
||||||
farmHome = await this.curl({
|
farmHome = await this.curl({
|
||||||
'url': `https://api.m.jd.com/client.action`,
|
'url': `https://api.m.jd.com/client.action`,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user