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

Function domission

jd_jump.js:225–239  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

223
224//做任务
225async function domission() {
226 console.log('执行骰子任务');
227 const myRequest = getGetRequest('doTask', `activityId=${$.jumpId}`);
228 return new Promise(async resolve => {
229 $.get(myRequest, (err, resp, data) => {
230 try {
231
232 } catch (e) {
233 $.logErr(e, resp)
234 } finally {
235 resolve();
236 }
237 })
238 })
239}
240
241async function throwDice() {
242 console.log('丢骰子');

Callers 1

jumpFunction · 0.85

Calls 4

getGetRequestFunction · 0.70
logMethod · 0.45
getMethod · 0.45
logErrMethod · 0.45

Tested by

no test coverage detected