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

Method queryUser

wxapp/ydyc.js:133–143  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

131 }
132
133 async queryUser() {
134 const data = await this.call({ action: "userInfoData" });
135 const user = data.user || {};
136 const money = data.u_money || {};
137 this.log(
138 `用户信息: ${user.id || ""} ${user.name || ""},积分: ${money.jifen ?? 0},金币: ${money.jinbi ?? 0},红包: ${
139 money.hongbao ?? 0
140 },佣金: ${money.yongjin ?? 0},优惠券: ${money.yhquan ?? 0}`
141 );
142 return data;
143 }
144
145 async querySignInfo() {
146 const data = await this.call({ action: "getIntegralInfo", type: "sign" });

Callers 1

runMethod · 0.95

Calls 2

callMethod · 0.95
logMethod · 0.95

Tested by

no test coverage detected