MCPcopy Create free account
hub / github.com/Semporia/Scripts / helpMain

Function helpMain

jd_senbeans.js:127–152  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

125}
126
127async 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
154async function rewardMain(){
155 $.detail = {};

Callers 1

jd_senbeans.jsFile · 0.85

Calls 4

getActivityDetailFunction · 0.85
helpFunction · 0.70
logMethod · 0.45
waitMethod · 0.45

Tested by

no test coverage detected