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

Method loginCommunityToken

wxapp/haitian.js:274–285  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

272 }
273
274 async loginCommunityToken() {
275 if (!this.token) return;
276 const result = await this.request("/wx/auth/loginByToken", {
277 method: "POST",
278 base: "https://cmallwap.xkmm.cn/haday",
279 data: { access_token: this.token },
280 auth: false,
281 isJson: true,
282 });
283 this.communityToken = result?.data || result || "";
284 this.saveCachedToken();
285 }
286
287 async checkToken() {
288 try {

Callers 1

loginByWxCodeMethod · 0.95

Calls 2

requestMethod · 0.95
saveCachedTokenMethod · 0.95

Tested by

no test coverage detected