Skip to content

Commit 9168791

Browse files
author
robot
committed
fix: daily checkl
1 parent da00c90 commit 9168791

File tree

6 files changed

+38223
-7
lines changed

6 files changed

+38223
-7
lines changed

middleware/mockUserInfo.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ module.exports = ({ whitelist = [] }) =>
44
ctx.session = {};
55
}
66
ctx.session.user = {
7-
// login: "lilyzhaoyilu",
7+
login: "lilyzhaoyilu",
88
// login: "zliu1413",
9-
login: "rfhklwt",
9+
// login: "rfhklwt",
1010
// login: "azl397985856",
1111
avatar_url: "https://avatars.githubusercontent.com/u/12479470?v=4",
1212
name: "lucifer",

schedule/daily-check.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,11 @@ async function run(d) {
4343
}
4444
// 由于下面的一行代码,导致了会插入一个完全空的行。这就是因为打过卡,但是都不是当天打的
4545
if (comment.body.length < 20) return;
46-
if (mySolutions[login][d - 1].onTime !== void 0) return; // 如果打卡过或者补卡过就不同步了
46+
if (
47+
mySolutions[login][d - 1] &&
48+
mySolutions[login][d - 1].onTime !== void 0
49+
)
50+
return; // 如果打卡过或者补卡过就不同步了
4751
// 由于索引从 1 开始,因此需要再减去 1。
4852
mySolutions[login][d - 1] = {
4953
// title: problem.title,

static/meta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"dailyCheck":{"lastUpdateTime":1621965715520},"users":{"lastUpdateTime":-1}}
1+
{"dailyCheck":{"lastUpdateTime":1621996991626},"users":{"lastUpdateTime":-1}}

static/my/solutions.json

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

static/solution/solutions.json

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

static/users/index.json

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

0 commit comments

Comments
 (0)