MCPcopy Index your code
hub / github.com/smallfawn/QLScriptPublic / queryFarm

Method queryFarm

wxapp/junpinhui.js:335–343  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

333 }
334
335 async queryFarm() {
336 const data = await this.gardenGet("/garden/sorghum/index");
337 const lands = listify(data);
338 const summary = lands
339 .map((v) => `#${v.serial_number ?? v.id ?? "?"}:${v.status ?? "?"}`)
340 .join(" ");
341 $.log(`账号[${this.index}] 地块: ${lands.length || 0}块 ${summary}`.trim());
342 return lands;
343 }
344
345 landPayload(land) {
346 const id = pickId(land);

Callers 2

runFarmAutomationMethod · 0.95
runMethod · 0.95

Calls 3

gardenGetMethod · 0.95
listifyFunction · 0.85
logMethod · 0.45

Tested by

no test coverage detected