MCPcopy Index your code
hub / github.com/smallfawn/QLScriptPublic / getUserInfo

Function getUserInfo

jetta.js:176–218  ·  view source on GitHub ↗
(timeout = 0)

Source from the content-addressed store, hash-verified

174 });
175}
176function getUserInfo(timeout = 0) {
177 return new Promise((resolve) => {
178
179
180 let url = {
181 url: `https://service-yy.jconnect.faw-vw.com/redpackbank/user/getUserInfo`,
182 headers: {
183 "Host": "service-yy.jconnect.faw-vw.com",
184 "pragma": "no-cache",
185 "cache-control": "no-cache",
186 "accept": "application/json, text/plain, */*",
187 "origin": "https://serviceui-yy-ui.jconnect.faw-vw.com",
188 "sec-fetch-dest": "empty",
189 "token": `${JETTA_token}`,
190 },
191
192 };
193
194 $.get(
195 url,
196 async (err, resp, data) => {
197 try {
198 data = JSON.parse(data);
199
200 if (data.status == 'SUCCEED') {
201 console.log("\n【余额】: " + data.data.detail.allPrize);
202
203
204 $.message += "\n【余额】: " + data.data.detail.allPrize + '元'
205
206
207 } else {
208
209 }
210 } catch (e) {
211 } finally {
212 resolve();
213 }
214 },
215 timeout
216 );
217 });
218}
219//通知
220async function message() {
221 if (tz == 1) {

Callers 1

jetta.jsFile · 0.85

Calls 2

getMethod · 0.45
logMethod · 0.45

Tested by

no test coverage detected