截图在白天不截取

This commit is contained in:
luchenqun 2018-05-14 18:18:52 +08:00
parent 3f1d0c604e
commit 63d0ba4837
1 changed files with 4 additions and 0 deletions

View File

@ -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) {