Skip to content

Commit d7ebf6d

Browse files
author
robot
committed
feat: 清空补签
1 parent 9309988 commit d7ebf6d

File tree

3 files changed

+20609
-2
lines changed

3 files changed

+20609
-2
lines changed

schedule/check-in.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,20 @@ const whitelist = [
1414
"azl397985856",
1515
];
1616

17+
// 清空补签卡
18+
function resetCards() {
19+
for (const name in allUsers) {
20+
allUsers[name].card = 0;
21+
console.log(allUsers[name]);
22+
}
23+
fs.writeFileSync(
24+
path.resolve(__dirname, "../static/users/index.json"),
25+
JSON.stringify(allUsers)
26+
);
27+
}
28+
29+
resetCards();
30+
1731
function run(n) {
1832
// 返回目前为止满勤的人(连续七天可获取补签卡)
1933
function fullCheckIn(from = 37, to = getDay()) {

static/meta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"users":{"lastUpdateTime":1634459164454},"dailyCheck":{"lastUpdateTime":1634460999425},"checkIn":{"lastUpdateTime":1634461347846}}
1+
{"users":{"lastUpdateTime":1634459164454},"dailyCheck":{"lastUpdateTime":1634460999425},"checkIn":{"lastUpdateTime":1634461712147}}

static/users/index.json

Lines changed: 20594 additions & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)