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

Method generate

wxapp/longfor.js:288–302  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

286 }
287
288 async generate() {
289 const lid = await this.getLid();
290 const param = dxEncrypt(this.mergeOptions({ lid, cache: !!this.options.cache }));
291 const data = await this.request(param, this.getToken());
292 const status = Number(data.status);
293 if (status === 1 || status === 2) {
294 this.setToken(data.data);
295 return data.data;
296 }
297 if (status === -4 && data.data) {
298 DX_STORAGE.set(DX_LID_KEY, data.data);
299 return this.detect();
300 }
301 return this.detect();
302 }
303}
304
305async function getDxToken() {

Callers 1

getDxTokenFunction · 0.80

Calls 8

getLidMethod · 0.95
mergeOptionsMethod · 0.95
requestMethod · 0.95
getTokenMethod · 0.95
setTokenMethod · 0.95
detectMethod · 0.95
dxEncryptFunction · 0.85
setMethod · 0.45

Tested by

no test coverage detected