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

Method constructor

wxapp/colorful.js:90–106  ·  view source on GitHub ↗
(env)

Source from the content-addressed store, hash-verified

88
89class Task {
90 constructor(env) {
91 this.index = $.userIdx++;
92 this.raw = String(env || "").trim();
93 this.user = this.raw.split(strSplitor);
94 this.accountId = this.user[0].trim();
95 this.token = "";
96 this.refreshToken = "";
97 this.openId = "";
98 this.userInfo = {};
99 this.signStatus = false;
100 this.isLegacyToken = this.user.length >= 2;
101 if (this.isLegacyToken) {
102 this.token = this.user[0].trim();
103 this.refreshToken = this.user[1].trim();
104 this.accountId = `legacy:${shortToken(this.token)}`;
105 }
106 }
107
108 async run() {
109 if (this.isLegacyToken) {

Callers

nothing calls this directly

Calls 1

shortTokenFunction · 0.70

Tested by

no test coverage detected