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

Function getAuthorShareCode2

jd_cash.js:533–554  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

531 })
532}
533function getAuthorShareCode2(url) {
534 return new Promise(resolve => {
535 $.get({url, headers:{
536 "User-Agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1 Edg/87.0.4280.88"
537 }, timeout: 200000,}, async (err, resp, data) => {
538 $.authorCode2 = [];
539 try {
540 if (err) {
541 } else {
542 $.authorCode2 = []
543 if ($.authorCode2 && $.authorCode2.length) {
544 $.authorCode.push(...$.authorCode2);
545 }
546 }
547 } catch (e) {
548 $.logErr(e, resp)
549 } finally {
550 resolve();
551 }
552 })
553 })
554}
555function TotalBean() {
556 return new Promise(async resolve => {
557 const options = {

Callers 1

jd_cash.jsFile · 0.70

Calls 2

getMethod · 0.45
logErrMethod · 0.45

Tested by

no test coverage detected