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

Method constructor

wxapp/fafa.js:74–84  ·  view source on GitHub ↗
(account)

Source from the content-addressed store, hash-verified

72
73class Task {
74 constructor(account) {
75 this.index = $.userIdx++;
76 this.account = String(account || "").trim();
77 this.accessToken = "";
78 this.authorization = "";
79 this.userInfo = {};
80 this.todayDate = formatDate();
81 this.isTodaySign = false;
82 this.isDirectToken = /^token=/i.test(this.account) || /^bearer/i.test(this.account);
83 if (this.isDirectToken) this.applyToken({ authorization: this.account.replace(/^token=/i, "") });
84 }
85
86 async run() {
87 if (!this.authorization) {

Callers

nothing calls this directly

Calls 2

applyTokenMethod · 0.95
formatDateFunction · 0.70

Tested by

no test coverage detected