SyncOrderPackageLogisticRouteTask.php 962 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. namespace App\Console\Commands;
  3. use App\Services\LogService;
  4. use App\Services\OrderPackageReceivedSyncService;
  5. use Illuminate\Console\Command;
  6. class SyncOrderPackageLogisticRouteTask extends Command
  7. {
  8. /**
  9. * The name and signature of the console command.
  10. *
  11. * @var string
  12. */
  13. protected $signature = 'syncOrderPackageLogisticRouteTask';
  14. /**
  15. * The console command description.
  16. *
  17. * @var string
  18. */
  19. protected $description = 'Command description';
  20. /**
  21. * Create a new command instance.
  22. *
  23. * @return void
  24. */
  25. public function __construct()
  26. {
  27. parent::__construct();
  28. }
  29. /**
  30. * Execute the console command.
  31. *
  32. * @throws \Exception
  33. */
  34. public function handle()
  35. {
  36. LogService::log(__CLASS__,"同步快递信息",'');
  37. ini_set('memory_limit','2226M');
  38. (new OrderPackageReceivedSyncService)->syncLogisticRoute();
  39. }
  40. }