Skip to content

Commit

Permalink
fixed 未改回测试时的代码,导致一直提示“每天 早上8点到晚上22点之间 签到”。
Browse files Browse the repository at this point in the history
  • Loading branch information
PrintNow committed Jun 14, 2020
1 parent b495e18 commit c6acac0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .idea/php.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion main.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

//第二个传入区间,是一个数组
//['08:00:00', '23:00:00'] 表示仅能在这两个区间内进行签到
if(timeInterval(time(), ['08:00:00', '23:00:00'])){
if(!timeInterval(time(), ['08:00:00', '23:00:00'])){
die("仅能在 每天 早上8点到晚上22点之间 签到。如果你要修改,请修改 10 行代码".PHP_EOL);
}

Expand Down

0 comments on commit c6acac0

Please sign in to comment.