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

Method ensureToken

wxapp/fuyouhui.js:225–230  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

223 }
224
225 ensureToken() {
226 if (!this.token) this.token = this.getCached().token || "";
227 if (!this.token) {
228 throw new Error("缺少 folidayMallToken。请将变量设置为 openid#token,或设置 fuyouhui_token。");
229 }
230 }
231
232 async getMemberInfo() {
233 const data = assertOk(

Callers 1

runMethod · 0.95

Calls 1

getCachedMethod · 0.95

Tested by

no test coverage detected