MCPcopy Create free account
hub / github.com/Toulu-debug/enen / showTaskProcess

Function showTaskProcess

jd_plantBean.js:364–376  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

362}
363
364function showTaskProcess() {
365 return new Promise(async resolve => {
366 await plantBeanIndex();
367 $.taskList = $.plantBeanIndexResult.data?.taskList;
368 if ($.taskList && $.taskList.length > 0) {
369 console.log(" 任务 进度");
370 for (let item of $.taskList) {
371 console.log(`[${item["taskName"]}] ${item["gainedNum"]}/${item["totalNum"]} ${item["isFinished"]}`);
372 }
373 }
374 resolve()
375 })
376}
377
378function showMsg() {
379 $.log(`\n${message}\n`);

Callers 1

jdPlantBeanFunction · 0.85

Calls 2

plantBeanIndexFunction · 0.85
logMethod · 0.45

Tested by

no test coverage detected