MCPcopy Create free account
hub / github.com/smallfawn/QLScriptPublic / user_info

Method user_info

gqftbz.js:290–319  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

288 }
289
290 async user_info() {
291 try {
292 let options = {
293 url: `https://gw.nevapp.gtmc.com.cn/main/api/community/lgn/user/getLoginUserInfo`,
294 headers: this.getHeadersGet_android(),
295 },
296 result = await httpRequest(options);
297 //console.log(options);
298 //console.log(result);
299 if (result.header.code == 10000000) {
300 DoubleLog(`账号[${this.index}] 欢迎用户: [${result.body.baseInfo.nickname}]🎉`);
301 this.ckStatus = true;
302 this.nickname = result.body.baseInfo.nickname
303 } else if (result.header.code == 10001007) {
304 DoubleLog(`账号[${this.index}] 用户查询:失败 ❌ 了呢,原因Token过期,现在即将刷新token!`);
305 await this.refresh_token()
306 this.ckStatus = false;
307 console.log(result);
308 } else if (result.header.code = 10009999) {
309 DoubleLog(`账号[${this.index}] 用户查询:失败 ❌ 了呢,原因refreshToken已改变,请重新获取CK!`);
310 this.ckStatus = false;
311 } else {
312 DoubleLog(`账号[${this.index}] 用户查询:失败 ❌ 了呢,原因未知!`);
313 this.ckStatus = false;
314 console.log(result);
315 }
316 } catch (e) {
317 console.log(e);
318 }
319 }
320
321
322 /**

Callers 2

refresh_tokenMethod · 0.95
startFunction · 0.45

Calls 5

getHeadersGet_androidMethod · 0.95
refresh_tokenMethod · 0.95
httpRequestFunction · 0.70
DoubleLogFunction · 0.70
logMethod · 0.45

Tested by

no test coverage detected