This commit is contained in:
lxk0301
2021-03-31 12:14:20 +08:00
parent afe63b1ef0
commit 7aa62b1c3e
4 changed files with 8 additions and 7 deletions

View File

@@ -90,7 +90,7 @@ async function jdPlantBean() {
console.log(`获取任务及基本信息`)
await plantBeanIndex();
// console.log(plantBeanIndexResult.data.taskList);
if ($.plantBeanIndexResult && $.plantBeanIndexResult.code === '0') {
if ($.plantBeanIndexResult && $.plantBeanIndexResult.code === '0' && $.plantBeanIndexResult.data) {
const shareUrl = $.plantBeanIndexResult.data.jwordShareInfo.shareUrl
$.myPlantUuid = getParam(shareUrl, 'plantUuid')
console.log(`\n【京东账号${$.index}${$.UserName})的${$.name}好友互助码】${$.myPlantUuid}\n`);
@@ -118,7 +118,7 @@ async function jdPlantBean() {
$.logErr(e);
const errMsg = `京东账号${$.index} ${$.nickName || $.UserName}\n任务执行异常,请检查执行日志 ‼️‼️`;
if ($.isNode()) await notify.sendNotify(`${$.name}`, errMsg);
$.msg($.name, '', `京东账号${$.index} ${$.nickName || $.UserName}\n${errMsg}`)
$.msg($.name, '', `${errMsg}`)
}
}
async function doGetReward() {