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

Function taskCoin

jd_mohe.js:366–382  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

364}
365
366function taskCoin(type) {
367 return new Promise((resolve) => {
368 const url = `taskCoin?type=${type}&t=${Date.now()}`;
369 $.get(taskurl(url), (err, resp, data) => {
370 try {
371 // console.log('homeGoBrowse', data)
372 data = JSON.parse(data);
373 // console.log('homeGoBrowse', data)
374 // console.log(`成功领取${data.data}热力值`)
375 } catch (e) {
376 $.logErr(e, resp);
377 } finally {
378 resolve(data);
379 }
380 })
381 })
382}
383async function getAward() {
384 const coinRes = await coin();
385 if (coinRes.code === 200) {

Callers 1

taskListFunction · 0.85

Calls 3

taskurlFunction · 0.70
getMethod · 0.45
logErrMethod · 0.45

Tested by

no test coverage detected