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

Method ensureLogin

wxapp/ctrip.js:307–315  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

305 }
306
307 async ensureLogin() {
308 const cached = this.getCached();
309 this.ticket = this.ticket || cached.ticket || "";
310 this.duid = this.duid || cached.duid || "";
311 this.udl = this.udl || cached.udl || "";
312 this.uid = this.uid || cached.uid || "";
313 if (this.ticket) return;
314 await this.login();
315 }
316
317 headers(raw) {
318 const headers = {

Callers 1

runMethod · 0.95

Calls 2

getCachedMethod · 0.95
loginMethod · 0.95

Tested by

no test coverage detected