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

Function getAuthorShareCode

activity/jd_jdh.js:111–130  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

109 await showMsg()
110}
111function getAuthorShareCode(url) {
112 return new Promise(resolve => {
113 $.get({url: `${url}?${new Date()}`,
114 headers:{
115 "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"
116 }}, async (err, resp, data) => {
117 try {
118 if (err) {
119 } else {
120 $.newShareCodes = $.newShareCodes.concat(JSON.parse(data))
121 console.log($.newShareCodes)
122 }
123 } catch (e) {
124 $.logErr(e, resp)
125 } finally {
126 resolve();
127 }
128 })
129 })
130}
131function queryShareInfo() {
132 return new Promise(resolve => {
133 $.get(taskUrl("jdh_invite_startInvite", {"channel":"jdhapp","m_patch_appid":"jdh"}), async (err, resp, data) => {

Callers 1

jd_jdh.jsFile · 0.70

Calls 3

getMethod · 0.45
logMethod · 0.45
logErrMethod · 0.45

Tested by

no test coverage detected