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

Function strollActive

jd_mohe.js:312–328  ·  view source on GitHub ↗
(index)

Source from the content-addressed store, hash-verified

310}
311// 浏览会场(10个)
312function strollActive(index) {
313 return new Promise((resolve) => {
314 const url = `strollActive?0=${index}&t=${Date.now()}`;
315 $.get(taskurl(url), (err, resp, data) => {
316 try {
317 // console.log('homeGoBrowse', data)
318 data = JSON.parse(data);
319 // console.log('homeGoBrowse', data)
320 // console.log(`成功领取${data.data}热力值`)
321 } catch (e) {
322 $.logErr(e, resp);
323 } finally {
324 resolve(data);
325 }
326 })
327 })
328}
329//关注或浏览店铺(9个)
330function strollShop(shopId) {
331 return new Promise((resolve) => {

Callers 1

taskListFunction · 0.85

Calls 3

taskurlFunction · 0.70
getMethod · 0.45
logErrMethod · 0.45

Tested by

no test coverage detected