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

Method getPoints

wxapp/zbs.js:208–220  ·  view source on GitHub ↗
(prefix = "当前")

Source from the content-addressed store, hash-verified

206 }
207
208 async getPoints(prefix = "当前") {
209 try {
210 const result = await this.request("user/getUserIntegral", {
211 data: { userId: this.userId },
212 });
213 const integer = result?.data?.integer ?? result?.data?.integral ?? result?.data?.point ?? "未知";
214 $.log(`🌸账号[${this.index}] ${prefix}积分: ${integer}🎉`);
215 } catch (e) {
216 const message = String(e.message || e);
217 $.log(`🌸账号[${this.index}] 获取积分失败: ${message}❌`);
218 if (isTokenError(message)) this.removeCachedToken();
219 }
220 }
221
222 async signIn() {
223 try {

Callers 1

runMethod · 0.95

Calls 4

requestMethod · 0.95
removeCachedTokenMethod · 0.95
isTokenErrorFunction · 0.70
logMethod · 0.45

Tested by

no test coverage detected