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

Method getLoginCode

wxapp/parkson.js:162–167  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

160 }
161
162 async getLoginCode() {
163 const { data } = await wechat.getCode(this.openid);
164 const code = data?.code || data?.data?.code;
165 if (!code) throw new Error(`wx_server 未返回 code: ${JSON.stringify(data)}`);
166 return code;
167 }
168
169 async loginByWxCode() {
170 try {

Callers 1

loginByWxCodeMethod · 0.95

Calls 1

getCodeMethod · 0.45

Tested by

no test coverage detected