sunhao 5 years ago
parent
commit
da443c9671

+ 4 - 4
app/Console/Commands/DisRoiByDay15History.php

@@ -4,9 +4,9 @@ namespace App\Console\Commands;
4 4
 use Illuminate\Console\Command;
5 5
 use DB;
6 6
 use App\AdCost;
7
-class DisRoiByDayHistory extends Command {
7
+class DisRoiByDay15History extends Command {
8 8
 
9
-    protected $signature = 'DisRoiByDayHistory';
9
+    protected $signature = 'DisRoiByDay15History';
10 10
 
11 11
     /**
12 12
      * The console command description.
@@ -18,9 +18,9 @@ class DisRoiByDayHistory extends Command {
18 18
 
19 19
     public function handle()
20 20
     {
21
-        $this->DisRoiByDayHistory();
21
+        $this->DisRoiByDay15History();
22 22
     }
23
-    public function DisRoiByDayHistory(){
23
+    public function DisRoiByDay15History(){
24 24
         for($i=41; $i>=15; $i--){
25 25
             $stime = date('Y-m-d', strtotime('-'.$i.' day'));
26 26
             $e = $i-15; 

+ 5 - 5
app/Console/Commands/DisRoiByDay30History.php

@@ -4,23 +4,23 @@ namespace App\Console\Commands;
4 4
 use Illuminate\Console\Command;
5 5
 use DB;
6 6
 use App\AdCost;
7
-class DisRoiByDayHistory extends Command {
7
+class DisRoiByDay30History extends Command {
8 8
 
9
-    protected $signature = 'DisRoiByDayHistory';
9
+    protected $signature = 'DisRoiByDay30History';
10 10
 
11 11
     /**
12 12
      * The console command description.
13 13
      *
14 14
      * @var string
15 15
      */
16
-    protected $description = '地域7日roi';
16
+    protected $description = '地域30日roi';
17 17
 
18 18
 
19 19
     public function handle()
20 20
     {
21
-        $this->DisRoiByDayHistory();
21
+        $this->DisRoiByDay30History();
22 22
     }
23
-    public function DisRoiByDayHistory(){
23
+    public function DisRoiByDay30History(){
24 24
         for($i=36; $i>=30; $i--){
25 25
             $stime = date('Y-m-d', strtotime('-'.$i.' day'));
26 26
             $e = $i-30; 

+ 4 - 4
app/Console/Commands/DisRoiByDay45History.php

@@ -4,9 +4,9 @@ namespace App\Console\Commands;
4 4
 use Illuminate\Console\Command;
5 5
 use DB;
6 6
 use App\AdCost;
7
-class DisRoiByDayHistory extends Command {
7
+class DisRoiByDay45History extends Command {
8 8
 
9
-    protected $signature = 'DisRoiByDayHistory';
9
+    protected $signature = 'DisRoiByDay45History';
10 10
 
11 11
     /**
12 12
      * The console command description.
@@ -18,9 +18,9 @@ class DisRoiByDayHistory extends Command {
18 18
 
19 19
     public function handle()
20 20
     {
21
-        $this->DisRoiByDayHistory();
21
+        $this->DisRoiByDay45History();
22 22
     }
23
-    public function DisRoiByDayHistory(){
23
+    public function DisRoiByDay45History(){
24 24
         for($i=41; $i>=45; $i--){
25 25
             $stime = date('Y-m-d', strtotime('-'.$i.' day'));
26 26
             $e = $i-45; 

+ 5 - 0
app/Console/Kernel.php

@@ -22,7 +22,12 @@ class Kernel extends ConsoleKernel {
22 22
         'App\Console\Commands\DisRoiByDayHistory',
23 23
         'App\Console\Commands\DisRoiByDay',
24 24
         'App\Console\Commands\DisRoiByDay30',
25
+        'App\Console\Commands\DisRoiByDay30History',
25 26
         'App\Console\Commands\SyncAdCost',
27
+        'App\Console\Commands\DisRoiByDay15',
28
+        'App\Console\Commands\DisRoiByDay15History',
29
+        'App\Console\Commands\DisRoiByDay45',
30
+        'App\Console\Commands\DisRoiByDay45History',
26 31
         
27 32
     ];
28 33