|
|
@@ -116,14 +116,21 @@ async function all() {
|
|
|
if (isCaclMateListEnable()) {
|
|
|
let taskId = getWillCompositeTaskId();
|
|
|
if (taskId > 0) {
|
|
|
+ let found = false;
|
|
|
for (let i = 0; i < taskLst.length; i++) {
|
|
|
let taskInfo = taskLst[i];
|
|
|
if (taskInfo.id == taskId) {
|
|
|
+ found = true;
|
|
|
lk.setVal(GandartConstKey.CompositeTaskName, taskInfo.compositeTaskName);
|
|
|
await tryToExecCompositeTask(taskInfo.id, taskInfo);
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
+ if (!found) {
|
|
|
+ lk.log(`当前任务列表找不到相应任务[${taskId}]`);
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ lk.log('请设置合成任务ID,否则无法进行下一步骤');
|
|
|
}
|
|
|
}
|
|
|
lk.msg('');
|