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

Method queryMember

wxapp/oppo.js:220–232  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

218 }
219
220 async queryMember() {
221 const member = await this.miniRequest("GET", "/member/info", { sessionId: this.sessionId });
222 const base = await this.miniRequest("GET", "/member/baseInfo", { sessionId: this.sessionId }).catch(() => ({}));
223 this.memberInfo = member.data || {};
224 this.baseInfo = base.data || {};
225 const userName = this.memberInfo.userName || this.baseInfo.userName || "未知";
226 const phone = this.baseInfo.pnumber ? `,手机号: ${this.baseInfo.pnumber}` : "";
227 this.log(
228 `用户信息: ${userName}${phone},积分: ${this.memberInfo.pointAmount ?? 0},成长值: ${
229 this.memberInfo.growthValue ?? 0
230 },等级: ${this.memberInfo.gradeCode || "未知"}`
231 );
232 }
233
234 async queryEntrance() {
235 const result = await this.miniRequest("GET", "/activity/signIn/entrance", { sessionId: this.sessionId });

Callers 1

runMethod · 0.95

Calls 2

miniRequestMethod · 0.95
logMethod · 0.95

Tested by

no test coverage detected