Эх сурвалжийг харах

修改异常统计任务类名称

ANG YU 4 жил өмнө
parent
commit
790e9209d5

+ 2 - 2
app/Console/Commands/UpdateOrderPackageExceptionTypeCountingRecord.php → app/Console/Commands/UpdateOrderPackageExceptionTypeCountingRecordTask.php

@@ -5,14 +5,14 @@ namespace App\Console\Commands;
 use App\Services\LogService;
 use Illuminate\Console\Command;
 
-class UpdateOrderPackageExceptionTypeCountingRecord extends Command
+class UpdateOrderPackageExceptionTypeCountingRecordTask extends Command
 {
     /**
      * The name and signature of the console command.
      *
      * @var string
      */
-    protected $signature = 'updateOrderPackageExceptionTypeCountingRecord';
+    protected $signature = 'updateOrderPackageExceptionTypeCountingRecordTask';
 
     /**
      * The console command description.

+ 1 - 1
app/Console/Kernel.php

@@ -72,7 +72,7 @@ class  Kernel extends ConsoleKernel
         $schedule->command('sync:batch')->everyMinute();
         $schedule->command('sync:order')->everyMinute();
         $schedule->command('syncOrderPackageLogisticRouteTask')->dailyAt('1:20');//同步快递信息到orderPackage
-        $schedule->command('updateOrderPackageExceptionTypeCountingRecord')->dailyAt('2:20');//更新OrderPackageExceptionTypeCountingRecord
+        $schedule->command('updateOrderPackageExceptionTypeCountingRecordTask')->dailyAt('2:20');//更新OrderPackageExceptionTypeCountingRecord
         $schedule->command('SyncWmsCommoditiesInformation')->everyMinute();
         $schedule->command('clear:cancelledOrder')->everyTenMinutes();
         $schedule->command('WasSyncWmsAsnInformation')->everyMinute();

+ 17 - 0
tests/Unit/BaseTest.php

@@ -0,0 +1,17 @@
+<?php
+
+use Tests\TestCase;
+
+class BaseTest extends TestCase
+{
+    const CONSTANT = "Hello world.";
+
+    /**
+     * @test
+     */
+    public function test_001()
+    {
+        dump(self::CONSTANT);
+        $this->assertTrue(true);
+    }
+}