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

Function getInviteInfo

activity/jd_city.js:206–227  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

204 })
205}
206function getInviteInfo() {
207 let body = {}
208 return new Promise((resolve) => {
209 $.post(taskPostUrl("city_masterMainData",body), async (err, resp, data) => {
210 try {
211 if (err) {
212 console.log(`${JSON.stringify(err)}`)
213 console.log(`${$.name} API请求失败,请检查网路重试`)
214 } else {
215 if (safeGet(data)) {
216 data = JSON.parse(data);
217 // console.log(data)
218 }
219 }
220 } catch (e) {
221 $.logErr(e, resp)
222 } finally {
223 resolve(data);
224 }
225 })
226 })
227}
228function city_lotteryAward() {
229 let body = {}
230 return new Promise((resolve) => {

Callers 1

jd_city.jsFile · 0.85

Calls 5

taskPostUrlFunction · 0.70
safeGetFunction · 0.70
postMethod · 0.45
logMethod · 0.45
logErrMethod · 0.45

Tested by

no test coverage detected