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

Method constructor

wxapp/airui.js:126–133  ·  view source on GitHub ↗
(raw)

Source from the content-addressed store, hash-verified

124
125class Task {
126 constructor(raw) {
127 this.index = $.userIdx++;
128 const account = parseAccount(raw);
129 this.openid = account.openid;
130 this.token = account.token || "";
131 this.userId = "";
132 this.cacheKey = this.openid || (this.token ? md5(this.token).slice(0, 16) : `account_${this.index}`);
133 }
134
135 getCached() {
136 return readCache()[this.cacheKey] || {};

Callers

nothing calls this directly

Calls 2

parseAccountFunction · 0.70
md5Function · 0.70

Tested by

no test coverage detected