添加助力日志打印

This commit is contained in:
lxk0301
2020-12-21 10:08:32 +08:00
parent 8acbd607b9
commit 17a1b8af3c

View File

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