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

Method getLoginCode

wxapp/casetify.js:174–179  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

loginByWxCodeMethod · 0.95

Calls 1

getCodeMethod · 0.45

Tested by

no test coverage detected