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

Function callback

jd_carnivalcity.js:465–483  ·  view source on GitHub ↗
(error, response, body)

Source from the content-addressed store, hash-verified

463 };
464
465 async function callback(error, response, body) {
466 if (!error && response.statusCode == 200) {
467 // $.log(body);
468 let result = JSON.parse(body)
469 let message = ""
470 if (result.data.length > 0) {
471 message += message += `\n开始【京东账号${$.index}】${$.nickName || $.UserName}\n`
472 }
473 for (let obj of result.data) {
474 if (obj.hasOwnProperty('fillStatus') && obj.fillStatus != true) {
475 message += JSON.stringify(obj)
476 }
477 }
478 if (message.length > 0) {
479 await notify.sendNotify($.name, message);
480 }
481 resolve()
482 }
483 }
484
485 request(options, callback);
486

Callers 4

getMethod · 0.85
postMethod · 0.85
getFunction · 0.85
postFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected