diff --git a/jd_plantBean.js b/jd_plantBean.js index e4237bd2..b7393db3 100644 --- a/jd_plantBean.js +++ b/jd_plantBean.js @@ -367,7 +367,6 @@ async function doHelp() { console.log(`\n跳过自己的plantUuid\n`) continue } - console.log(`\n开始助力好友: ${plantUuid}`); await helpShare(plantUuid); if ($.helpResult.code === '0') { // console.log(`助力好友结果: ${JSON.stringify($.helpResult.data.helpShareRes)}`); @@ -489,6 +488,7 @@ async function plantShareSupportList() { } //助力好友的api async function helpShare(plantUuid) { + console.log(`\n开始助力好友: ${plantUuid}`); const body = { "plantUuid": plantUuid, "wxHeadImgUrl": "", @@ -496,6 +496,7 @@ async function helpShare(plantUuid) { "followType": "1", } $.helpResult = await request(`plantBeanIndex`, body); + console.log(`助力结果的code:${$.helpResult && $.helpResult.code}`); } async function plantBeanIndex() { $.plantBeanIndexResult = await request('plantBeanIndex');//plantBeanIndexBody