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

Function jdHealth

activity/jd_watch.js:195–215  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

193 $.done();
194 })
195async function jdHealth() {
196 $.bean = 0
197 await getTaskList()
198 if($.task) {
199 console.log(`${$.name}浏览次数:${$.task.times}/${$.task.maxTimes}`)
200 let i = 0, j = $.task.times
201 while(j < $.task.maxTimes) {
202 if (!acceptBody[i]) break
203 let res = await acceptTask(acceptBody[i++])
204 if (res['success']) {
205 await $.wait(10000)
206 await doTask(doBody[i-1])
207 j++
208 }
209 await $.wait(500);
210 }
211 await getTaskList()
212 if ($.task.times===$.task.maxTimes)
213 await reward()
214 }
215}
216
217function showMsg() {
218 return new Promise(async resolve => {

Callers 1

jd_watch.jsFile · 0.70

Calls 6

acceptTaskFunction · 0.85
rewardFunction · 0.85
getTaskListFunction · 0.70
doTaskFunction · 0.70
logMethod · 0.45
waitMethod · 0.45

Tested by

no test coverage detected