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

Function coin

jd_mohe.js:411–427  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

409}
410//获取有多少热力值
411function coin() {
412 return new Promise((resolve) => {
413 const url = `coin?t=${Date.now()}`;
414 $.get(taskurl(url), (err, resp, data) => {
415 try {
416 // console.log('homeGoBrowse', data)
417 data = JSON.parse(data);
418 // console.log('homeGoBrowse', data)
419 // console.log(`成功领取${data.data}热力值`)
420 } catch (e) {
421 $.logErr(e, resp);
422 } finally {
423 resolve(data);
424 }
425 })
426 })
427}
428//抽奖API
429function lottery() {
430 return new Promise((resolve) => {

Callers 1

getAwardFunction · 0.85

Calls 3

taskurlFunction · 0.70
getMethod · 0.45
logErrMethod · 0.45

Tested by

no test coverage detected