LandingOrderSelectFirstCharge.php 735 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. namespace App\Console\Commands;
  3. use App\DataApi\Helper\OrderPutHelper;
  4. use Illuminate\Support\Facades\Log;
  5. class LandingOrderSelectFirstCharge extends \Illuminate\Console\Command
  6. {
  7. protected $signature = "saler_order:select_first_charge";
  8. protected $description = 'saler_order select_first_charge';
  9. public function __construct()
  10. {
  11. parent::__construct();
  12. }
  13. public function handle()
  14. {
  15. $OrderPut = new OrderPutHelper();
  16. $OrderPut->select_first_charge();
  17. Log::info('定时任务:执行完成落地页查单首冲,等待下次执行');
  18. $i = 0;
  19. while ($i < 120) {
  20. sleep(1);
  21. $i++;
  22. }
  23. $this->handle();
  24. }
  25. }