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

Function taskHomeCoin

jd_mohe.js:209–224  ·  view source on GitHub ↗
(type, id)

Source from the content-addressed store, hash-verified

207 })
208}
209function taskHomeCoin(type, id) {
210 return new Promise((resolve) => {
211 const url = `taskHomeCoin?type=${type}&id=${id}`;
212 $.get(taskurl(url), (err, resp, data) => {
213 try {
214 // console.log('homeGoBrowse', data)
215 data = JSON.parse(data);
216 // console.log('homeGoBrowse', data)
217 } catch (e) {
218 $.logErr(e, resp);
219 } finally {
220 resolve(data);
221 }
222 })
223 })
224}
225function getCoin() {
226 return new Promise((resolve) => {
227 const url = `getCoin?t=${Date.now()}`;

Callers 2

task0Function · 0.85
task1Function · 0.85

Calls 3

taskurlFunction · 0.70
getMethod · 0.45
logErrMethod · 0.45

Tested by

no test coverage detected