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

Function updatePkActivityId

jd_superMarket.js:1043–1060  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

1041
1042//新版东东超市
1043function updatePkActivityId(url) {
1044 return new Promise(resolve => {
1045 $.get({url}, async (err, resp, data) => {
1046 try {
1047 if (err) {
1048 console.log(`${JSON.stringify(err)}`)
1049 // console.log(`${$.name} API请求失败,请检查网路重试`)
1050 } else {
1051 $.updatePkActivityIdRes = JSON.parse(data);
1052 }
1053 } catch (e) {
1054 $.logErr(e, resp)
1055 } finally {
1056 resolve();
1057 }
1058 })
1059 })
1060}
1061
1062function updatePkActivityIdCDN(url) {
1063 return new Promise(async resolve => {

Callers

nothing calls this directly

Calls 3

getMethod · 0.45
logMethod · 0.45
logErrMethod · 0.45

Tested by

no test coverage detected