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

Method getLoginCode

wxapp/tmj.js:222–227  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

220 }
221
222 async getLoginCode() {
223 const { data } = await wechat.getCode(this.openid);
224 const code = data?.code || data?.data?.code;
225 if (!code) throw new Error(`wx_server 未返回 code: ${JSON.stringify(data)}`);
226 return code;
227 }
228
229 async loginByWxCode() {
230 try {

Callers 1

loginByWxCodeMethod · 0.95

Calls 1

getCodeMethod · 0.45

Tested by

no test coverage detected