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

Function smtgQueryShopTask

jd_superMarket.js:1134–1151  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1132}
1133
1134function smtgQueryShopTask() {
1135 return new Promise((resolve) => {
1136 $.get(taskUrl('smtg_queryShopTask'), (err, resp, data) => {
1137 try {
1138 if (err) {
1139 console.log('\n东东超市: API查询请求失败 ‼️‼️')
1140 console.log(JSON.stringify(err));
1141 } else {
1142 data = JSON.parse(data);
1143 }
1144 } catch (e) {
1145 $.logErr(e, resp);
1146 } finally {
1147 resolve(data);
1148 }
1149 })
1150 })
1151}
1152
1153function smtgSignList() {
1154 return new Promise((resolve) => {

Callers 1

doDailyTaskFunction · 0.85

Calls 4

taskUrlFunction · 0.70
getMethod · 0.45
logMethod · 0.45
logErrMethod · 0.45

Tested by

no test coverage detected