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

Method getLoginCode

wxapp/dasenlin.js:181–186  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

179 }
180
181 async getLoginCode() {
182 const { data } = await wechat.getCode(this.account);
183 const code = data?.code || data?.data?.code;
184 if (!code) throw new Error(`wx_server 未返回 code: ${JSON.stringify(data)}`);
185 return code;
186 }
187
188 async loginByWxCode() {
189 try {

Callers 1

loginByWxCodeMethod · 0.95

Calls 1

getCodeMethod · 0.45

Tested by

no test coverage detected