Jelajahi Sumber

启动清除波次

LD 5 tahun lalu
induk
melakukan
69e104731d
2 mengubah file dengan 1 tambahan dan 12 penghapusan
  1. 0 12
      app/Console/Commands/TestMakeCommand.php
  2. 1 0
      app/Console/Kernel.php

+ 0 - 12
app/Console/Commands/TestMakeCommand.php

@@ -69,18 +69,6 @@ class TestMakeCommand extends \Illuminate\Foundation\Console\TestMakeCommand
             ? $this->resolveStubPath('/stubs/test.unit.stub')
             : $this->resolveStubPath('/stubs/test.stub');
     }
-    protected function getArguments()
-    {
-        $args=parent::getArguments();
-        $args[]=['xx', InputArgument::REQUIRED, 'xx'];
-    }
-
-    protected function buildClass($name)
-    {
-        $stub = $this->files->get($this->getStub());
-
-        return $this->replaceNamespace($stub, $name)->replaceClass($stub, $name);
-    }
     protected function replaceClass($stub, $name)
     {
         $class = str_replace($this->getNamespace($name).'\\', '', $this->getMethodName());

+ 1 - 0
app/Console/Kernel.php

@@ -59,6 +59,7 @@ class Kernel extends ConsoleKernel
         $schedule->command('sync:batch')->everyMinute();
         $schedule->command('sync:order')->everyMinute();
         $schedule->command('SyncWmsCommoditiesInformation')->everyMinute();
+        $schedule->command('clear:cancelledOrder')->everyTenMinutes();
     }
 
     /**