From c6acac0e2180ad7b63169a823a16db9c2750ba76 Mon Sep 17 00:00:00 2001 From: chuwen Date: Sun, 14 Jun 2020 21:50:26 +0800 Subject: [PATCH] =?UTF-8?q?fixed=20=E6=9C=AA=E6=94=B9=E5=9B=9E=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E6=97=B6=E7=9A=84=E4=BB=A3=E7=A0=81=EF=BC=8C=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E4=B8=80=E7=9B=B4=E6=8F=90=E7=A4=BA=E2=80=9C=E6=AF=8F?= =?UTF-8?q?=E5=A4=A9=20=E6=97=A9=E4=B8=8A8=E7=82=B9=E5=88=B0=E6=99=9A?= =?UTF-8?q?=E4=B8=8A22=E7=82=B9=E4=B9=8B=E9=97=B4=20=E7=AD=BE=E5=88=B0?= =?UTF-8?q?=E2=80=9D=E3=80=82=20https://github.com/PrintNow/ChaoxingSign/i?= =?UTF-8?q?ssues/2#issuecomment-643741603?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/php.xml | 4 ++++ .idea/vcs.xml | 1 - main.php | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 .idea/php.xml diff --git a/.idea/php.xml b/.idea/php.xml new file mode 100644 index 0000000..10b171f --- /dev/null +++ b/.idea/php.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml index ba6f6ed..94a25f7 100644 --- a/.idea/vcs.xml +++ b/.idea/vcs.xml @@ -2,6 +2,5 @@ - \ No newline at end of file diff --git a/main.php b/main.php index 6e26774..67fbb3a 100644 --- a/main.php +++ b/main.php @@ -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); }