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

Method run

wxapp/fyzq.js:163–182  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

161 }
162
163 async run() {
164 $.log(`\n账号[${this.index}] ${mask(this.account)}`);
165 this.token = this.getCachedToken();
166
167 if (this.token) {
168 $.log(`账号[${this.index}] 使用缓存 token`);
169 try {
170 const status = await this.signBanner();
171 await this.handleStatus(status);
172 return;
173 } catch (e) {
174 $.log(`账号[${this.index}] 缓存失效: ${e.message || e}`);
175 this.removeToken();
176 }
177 }
178
179 await this.login();
180 const status = await this.signBanner();
181 await this.handleStatus(status);
182 }
183
184 async handleStatus(status) {
185 if (status.signed) {

Callers 1

fyzq.jsFile · 0.45

Calls 7

getCachedTokenMethod · 0.95
signBannerMethod · 0.95
handleStatusMethod · 0.95
removeTokenMethod · 0.95
loginMethod · 0.95
maskFunction · 0.70
logMethod · 0.45

Tested by

no test coverage detected