()
| 125 | } |
| 126 | |
| 127 | async function helpMain(){ |
| 128 | $.canHelp = true; |
| 129 | for (let j = 0; j < $.openTuanList.length && $.canHelp; j++) { |
| 130 | $.oneTuanInfo = $.openTuanList[j]; |
| 131 | if( $.UserName === $.oneTuanInfo['user']){ |
| 132 | continue; |
| 133 | } |
| 134 | if( $.oneTuanInfo['completed']){ |
| 135 | continue; |
| 136 | } |
| 137 | console.log(`${$.UserName}去助力${$.oneTuanInfo['user']}`); |
| 138 | $.detail = {}; |
| 139 | $.rewardRecordId = ''; |
| 140 | await getActivityDetail(); |
| 141 | if(JSON.stringify($.detail) === '{}'){ |
| 142 | console.log(`获取活动详情失败`); |
| 143 | return; |
| 144 | }else{ |
| 145 | $.rewardRecordId = $.detail.rewardRecordId; |
| 146 | console.log(`获取活动详情成功`); |
| 147 | } |
| 148 | await $.wait(3000); |
| 149 | await help(); |
| 150 | await $.wait(2000); |
| 151 | } |
| 152 | } |
| 153 | |
| 154 | async function rewardMain(){ |
| 155 | $.detail = {}; |
no test coverage detected