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

Method getUser

wxapp/wb.js:253–265  ·  view source on GitHub ↗
(silent = false)

Source from the content-addressed store, hash-verified

251 }
252
253 async getUser(silent = false) {
254 const result = await this.request("marketing/shyx/marketing/v1/cus/get-user-info", {
255 openId: this.appOpenid,
256 enterpriseNo: ENTERPRISE_NO,
257 }, "GET");
258 const user = result.data || {};
259 this.userId = user.id || this.userId;
260 this.mobile = user.mobile || this.mobile;
261 this.currentJf = user.currentJf ?? this.currentJf;
262 this.saveCachedToken();
263 if (!silent) $.log(`账号[${this.index}] 用户: userId=${this.userId || "未知"} 能量${this.currentJf ?? 0}`);
264 return user;
265 }
266
267 async signIn() {
268 try {

Callers 2

runMethod · 0.95
checkTokenMethod · 0.95

Calls 3

requestMethod · 0.95
saveCachedTokenMethod · 0.95
logMethod · 0.45

Tested by

no test coverage detected