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

Method getIdentityInfo

wxapp/mfd.js:212–226  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

210 }
211
212 async getIdentityInfo() {
213 try {
214 const result = await this.request({
215 apiPath: `/tnew/myfoodiepet-member/v1/member/identity/info/${MINI_APP_ID}`,
216 });
217 const data = result.data || {};
218 this.groupId = data.groupId || this.groupId;
219 this.agentId = data.agentId || this.agentId;
220 this.saveCachedToken();
221 return data;
222 } catch (e) {
223 $.log(`账号[${this.index}] 获取身份配置失败: ${e.message || e}`);
224 return {};
225 }
226 }
227
228 async loginByWxCode() {
229 try {

Callers 2

loginByWxCodeMethod · 0.95
checkLoginMethod · 0.95

Calls 3

requestMethod · 0.95
saveCachedTokenMethod · 0.95
logMethod · 0.45

Tested by

no test coverage detected