Ver Fonte

LOG日志

wq há 4 anos atrás
pai
commit
34b1146a92
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      app/service/visitService.js

+ 1 - 1
app/service/visitService.js

@@ -250,7 +250,7 @@ class VisitService extends Service {
     let morenArr = [];
     for(let i=0;i<7;i++){
       let yestday = new Date();
-      yestday.setTime(yestday.getTime()-24*60*60*1000*i);
+      yestday.setTime(yestday.getTime()-24*60*60*1000*(6-i));
       let month = yestday.getMonth()+1;
       if (month < 10) month = "0" + month;
       let day = yestday.getDate();