Update jd_task_farmNew.js

This commit is contained in:
可达鸭 2025-03-28 10:12:13 +08:00
parent 0439958ab3
commit af654d7f07

View File

@ -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`,