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

Method constructor

wxapp/gyjj.js:65–79  ·  view source on GitHub ↗
(env)

Source from the content-addressed store, hash-verified

63
64class Task {
65 constructor(env) {
66 this.index = $.userIdx++;
67 this.raw = String(env || "").trim();
68 this.user = this.raw.split(strSplitor);
69 this.accountId = this.user[0].trim();
70 this.token = "";
71 this.sessionKey = "";
72 this.userId = "";
73 this.userInfo = {};
74 this.isLegacyToken = /^Mer|eyJ/i.test(this.accountId) || this.user.length >= 2;
75 if (this.isLegacyToken) {
76 this.token = this.accountId.replace(/^Mer/i, "");
77 this.accountId = `legacy:${shortToken(this.token)}`;
78 }
79 }
80
81 async run() {
82 if (this.isLegacyToken) {

Callers

nothing calls this directly

Calls 1

shortTokenFunction · 0.70

Tested by

no test coverage detected