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

Method getLoginCode

wxapp/fej.js:175–180  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

173 }
174
175 async getLoginCode() {
176 const { data } = await wechat.getCode(this.openid);
177 const code = data?.code || data?.data?.code;
178 if (!code) throw new Error(`wx_server 未返回 code: ${JSON.stringify(data)}`);
179 return code;
180 }
181
182 async loginByWxCode() {
183 try {

Callers 1

loginByWxCodeMethod · 0.95

Calls 1

getCodeMethod · 0.45

Tested by

no test coverage detected