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

Method userInfo

wxapp/wps.js:391–396  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

389 }
390
391 async userInfo() {
392 const data = assertOk(await this.request("POST", "https://account.wps.cn/p/auth/check"), "查询用户信息");
393 this.uid = data.userid || data.id || this.uid || this.cookies.uid || "";
394 this.saveCache({ nickname: data.nickname || data.username || "" });
395 $.log(`账号[${this.index}] 用户: ${mask(data.nickname || data.username || this.uid)}`);
396 }
397
398 async sign() {
399 const body = { client_type: CLIENT_TYPE };

Callers 1

runMethod · 0.95

Calls 5

requestMethod · 0.95
saveCacheMethod · 0.95
assertOkFunction · 0.70
maskFunction · 0.70
logMethod · 0.45

Tested by

no test coverage detected