diff --git a/jd_nzmh.js b/jd_nzmh.js index d2f287f..dc902d3 100644 --- a/jd_nzmh.js +++ b/jd_nzmh.js @@ -157,9 +157,13 @@ function doTask(taskId) { console.log(`${$.name} API请求失败,请检查网路重试`) } else { data = JSON.parse(data.match(/query\((.*)\n/)[1]) - if (data.data.complete_task_list.includes(taskId)) { - console.log(`任务完成成功,当前幸运值${data.data.curbless}`) - $.userInfo.bless = data.data.curbless + if (data.errcode === 8004) { + console.log(`任务完成失败,无效任务ID`) + } else { + if (data.data.complete_task_list.includes(taskId)) { + console.log(`任务完成成功,当前幸运值${data.data.curbless}`) + $.userInfo.bless = data.data.curbless + } } } } catch (e) {