From 63d0ba483739e173dbbf409ec33c3c6ac646212f Mon Sep 17 00:00:00 2001 From: luchenqun Date: Mon, 14 May 2018 18:18:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=AA=E5=9B=BE=E5=9C=A8=E7=99=BD=E5=A4=A9?= =?UTF-8?q?=E4=B8=8D=E6=88=AA=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- routes/api.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/routes/api.js b/routes/api.js index b58a909..5ec639a 100644 --- a/routes/api.js +++ b/routes/api.js @@ -1146,6 +1146,10 @@ api.getSnapByTimer = function() { var timeout = 30000 setInterval(function() { var today = new Date().getDate(); + var hours = new Date().getHours(); + if(hours >= 6 && hours <= 23){ + return; + } db.getBookmarkWaitSnap(today) .then((bookmarks) => { if (bookmarks.length == 1) {