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

Method getSignConfig

wxapp/mengxiangjia.js:207–217  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

205 }
206
207 async getSignConfig() {
208 try {
209 const result = await this.request({ apiPath: "/pointsSign/config/query" });
210 const data = result?.data || {};
211 $.log(`账号[${this.index}] 签到配置: ${Number(data.signEnable) === 1 ? "已开启" : "未开启"} 日签${data.signReward ?? ""}积分`);
212 return data;
213 } catch (e) {
214 $.log(`账号[${this.index}] 获取签到配置失败: ${e.message || e}`);
215 return {};
216 }
217 }
218
219 async getTodaySignItem() {
220 try {

Callers 1

runMethod · 0.95

Calls 2

requestMethod · 0.95
logMethod · 0.45

Tested by

no test coverage detected