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

Method doSignOnce

wxapp/ydyc.js:162–171  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

160 }
161
162 async doSignOnce() {
163 const result = await this.api({ action: "userQiandao" });
164 if (result?.Status) {
165 const data = result.Data || {};
166 this.log(`签到结果: 成功,获得 ${data.add_jf ?? "-"} 积分,当前积分 ${data.user_jf ?? "-"}`);
167 return true;
168 }
169 this.log(`签到结果: ${short(result?.Data || result)}`);
170 return false;
171 }
172
173 async doAdRewardOnce() {
174 const result = await this.api({ action: "IntegralGiveReward" });

Callers 1

runSignMethod · 0.95

Calls 3

apiMethod · 0.95
logMethod · 0.95
shortFunction · 0.70

Tested by

no test coverage detected