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

Method constructor

wxapp/ctrip.js:189–198  ·  view source on GitHub ↗
(raw)

Source from the content-addressed store, hash-verified

187
188class Task {
189 constructor(raw) {
190 this.index = $.userIdx++;
191 const account = parseAccount(raw);
192 this.openid = account.openid || "";
193 this.ticket = account.ticket || "";
194 this.duid = account.duid || "";
195 this.udl = account.udl || "";
196 this.uid = "";
197 this.cacheKey = this.openid || (this.ticket ? md5(this.ticket).slice(0, 16) : `account_${this.index}`);
198 }
199
200 getCached() {
201 return readCache()[this.cacheKey] || {};

Callers

nothing calls this directly

Calls 2

parseAccountFunction · 0.70
md5Function · 0.70

Tested by

no test coverage detected