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

Function getBeanRewards

jd_jump.js:262–278  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

260}
261
262async function getBeanRewards() {
263 const myRequest = getGetRequest('getBeanRewards', `activityId=${$.jumpId}`);
264 return new Promise(async resolve => {
265 $.get(myRequest, (err, resp, data) => {
266 try {
267 if (data) {
268 data = JSON.parse(data);
269 $.rewardList = data.datas;
270 }
271 } catch (e) {
272 $.logErr(e, resp)
273 } finally {
274 resolve();
275 }
276 })
277 })
278}
279
280//做任务
281async function doTask() {

Callers 2

jumpFunction · 0.85
getRewardFunction · 0.85

Calls 3

getGetRequestFunction · 0.70
getMethod · 0.45
logErrMethod · 0.45

Tested by

no test coverage detected