Skip to content

Commit

Permalink
fix: 🐛 300 只在登录状态下自动签到
Browse files Browse the repository at this point in the history
  • Loading branch information
hymbz committed Jul 6, 2024
1 parent 510c524 commit d505117
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/site/yamibo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,11 @@ interface History {
);

// 自动签到
if (unsafeWindow.discuz_uid && options.自动签到)
if (
unsafeWindow.discuz_uid &&
unsafeWindow.discuz_uid !== '0' &&
options.自动签到
)
(async () => {
const todayString = new Date().toLocaleDateString('zh-CN');
// 判断当前日期与上次成功签到日期是否相同
Expand Down

0 comments on commit d505117

Please sign in to comment.