sunhao 5 years ago
parent
commit
5831806f2d

+ 1 - 1
app/Console/Commands/DayGrandTeamTotalHistory.php

@@ -26,7 +26,7 @@ class DayGrandTeamTotalHistory extends Command {
26 26
     
27 27
     public function dayGrandTeamTotal(){
28 28
         $_start = '2019-09-04';
29
-        for($i=68;$i>=1;$i--){
29
+        for($i=69;$i>=1;$i--){
30 30
             $m = '-'.($i-1).' day';
31 31
             $n = '-'.$i.' day';
32 32
             $_end = date('Y-m-d', strtotime($m));

+ 1 - 1
app/Console/Commands/RoiTeamTotalHistory.php

@@ -33,7 +33,7 @@ class RoiTeamTotalHistory extends Command {
33 33
         $salerIds = $this->getTeamSalers();
34 34
         for($i=1;$i<6;$i++){
35 35
             $j_min = $timeArr[$i];
36
-            for($j=64; $j>=$j_min; $j--){
36
+            for($j=69; $j>=$j_min; $j--){
37 37
                 $stime = date('Y-m-d', strtotime('-'.$j.' day'));
38 38
                 $e = $j-$j_min; 
39 39
                 $etime = $date = date('Y-m-d', strtotime('-'.$e.' day'));