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

Function readToken

jd_joy_run.js:258–279  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

256 }
257}
258function readToken() {
259 return new Promise(resolve => {
260 $.get({url: `http://share.turinglabs.net/api/v3/joy/query/1/`, 'timeout': 10000}, (err, resp, data) => {
261 try {
262 if (err) {
263 console.log(`${JSON.stringify(err)}`)
264 console.log(`${$.name} API请求失败,请检查网路重试`)
265 } else {
266 if (data) {
267 // if ($.isNode() && !run_pins[0].includes("被折叠的记忆33")) resolve(null);
268 console.log(`\n\n搬运我脚本修改我内置互助码的,请不要盗取我服务器token\n\n\n`)
269 data = JSON.parse(data);
270 }
271 }
272 } catch (e) {
273 $.logErr(e, resp)
274 } finally {
275 resolve(data);
276 }
277 })
278 })
279}
280
281function showMsg() {
282 return new Promise(async resolve => {

Callers 1

mainFunction · 0.85

Calls 3

getMethod · 0.45
logMethod · 0.45
logErrMethod · 0.45

Tested by

no test coverage detected