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

Method queryUser

wxapp/skyworth.js:179–189  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

177 }
178
179 async queryUser() {
180 const data = this.assertOk(await this.api("GET", "/v1/get-user"), "用户查询");
181 const base = data?.baseInfo || {};
182 this.profile = base;
183 this.log(
184 `用户信息: ${base.nickName || base.phone || "-"},维豆: ${base.userScore ?? "-"},成长值: ${
185 base.growthValue ?? "-"
186 },今日维豆: ${base.todayScore ?? 0},今日成长: ${base.todayGrowth ?? 0},等级: ${base.userGrade ?? "-"}`
187 );
188 return data;
189 }
190
191 async queryTasks() {
192 const data = this.assertOk(await this.api("GET", "/v1/index-task"), "任务查询");

Callers 1

runMethod · 0.95

Calls 3

assertOkMethod · 0.95
apiMethod · 0.95
logMethod · 0.95

Tested by

no test coverage detected