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

Function getInfo

activity/jd_firecrackers.js:106–124  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

104}
105
106function getInfo() {
107 return new Promise(resolve => {
108 $.get({
109 url: 'https://linggame.jd.com/babelDiy/Zeus/heA49fhvyw9UakaaS3UUJRL7v3o/index.html',
110 headers: {
111 Cookie: cookie
112 }
113 }, async (err, resp, data) => {
114 try {
115 $.info = JSON.parse(data.match(/var snsConfig = (.*)/)[1])
116 $.prize = JSON.parse($.info.prize)
117 } catch (e) {
118 console.log(e)
119 } finally {
120 resolve()
121 }
122 })
123 })
124}
125
126function getUserInfo(info = false) {
127 return new Promise(resolve => {

Callers 1

jdFamilyFunction · 0.70

Calls 2

getMethod · 0.45
logMethod · 0.45

Tested by

no test coverage detected