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

Function getTeam

jd_superMarket.js:1770–1791  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1768}
1769
1770function getTeam() {
1771 return new Promise(async resolve => {
1772 $.getTeams = [];
1773 $.get({url: `http://jd.turinglabs.net/api/v2/jd/supermarket/read/100000/`, timeout: 100000}, (err, resp, data) => {
1774 try {
1775 if (err) {
1776 console.log(`${JSON.stringify(err)}`)
1777 console.log(`${$.name} supermarket/read/ API请求失败,请检查网路重试`)
1778 } else {
1779 data = JSON.parse(data);
1780 $.getTeams = data && data['data'];
1781 }
1782 } catch (e) {
1783 $.logErr(e, resp)
1784 } finally {
1785 resolve();
1786 }
1787 })
1788 await $.wait(10000);
1789 resolve()
1790 })
1791}
1792
1793function taskUrl(function_id, body = {}) {
1794 return {

Callers 1

businessCircleActivityFunction · 0.85

Calls 4

getMethod · 0.45
logMethod · 0.45
logErrMethod · 0.45
waitMethod · 0.45

Tested by

no test coverage detected