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

Method constructor

wxapp/haitian.js:77–95  ·  view source on GitHub ↗
(env)

Source from the content-addressed store, hash-verified

75
76class Task {
77 constructor(env) {
78 this.index = $.userIdx++;
79 this.raw = String(env || "").trim();
80 this.user = this.raw.split(strSplitor);
81 this.accountId = this.user[0].trim();
82 this.token = "";
83 this.refreshToken = "";
84 this.communityToken = "";
85 this.uuid = randomUuid();
86 this.activity_code = "";
87 this.userFlag = false;
88 this.userInfo = {};
89 this.isLegacyToken = this.user.length >= 2;
90 if (this.isLegacyToken) {
91 this.token = this.user[0].trim();
92 this.uuid = this.user[1].trim() || this.uuid;
93 this.accountId = `legacy:${shortToken(this.token)}`;
94 }
95 }
96
97 async run() {
98 if (this.isLegacyToken) {

Callers

nothing calls this directly

Calls 2

randomUuidFunction · 0.85
shortTokenFunction · 0.70

Tested by

no test coverage detected