mirror of
https://github.com/qitoqito/psyduck.git
synced 2026-01-12 04:30:42 +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 {
|
||||
let skus = board.data.result.farmTreeLevels[2].farmLevelTrees[0]
|
||||
p.log("正在种树,选择商品:", skus.skuName)
|
||||
let tree = await this.curl({
|
||||
let plantTree = await this.curl({
|
||||
'url': `https://api.m.jd.com/client.action`,
|
||||
'form': `appid=signed_wh5&body=${this.dumps({
|
||||
"version": 10,
|
||||
"version": 13,
|
||||
"channelParam": "1",
|
||||
"uid": skus.uid,
|
||||
"type": "plantSku"
|
||||
@ -134,6 +134,11 @@ export class Main extends Template {
|
||||
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')) {
|
||||
farmHome = await this.curl({
|
||||
'url': `https://api.m.jd.com/client.action`,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user