SelectGetpayRemit.php 697 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. namespace App\Console\Commands;
  3. use App\DataApi\Helper\GetpayHelper;
  4. use Illuminate\Support\Facades\Log;
  5. class SelectGetpayRemit extends \Illuminate\Console\Command
  6. {
  7. protected $signature = "getpay_remit:select";
  8. protected $description = 'getpay_remit select';
  9. public function __construct()
  10. {
  11. parent::__construct();
  12. }
  13. public function handle()
  14. {
  15. $GetpayHelper = new GetpayHelper();
  16. $GetpayHelper->selectGetpayRemit();
  17. Log::info('定时任务:执行完成打款状态查询,等待下次执行');
  18. $i = 0;
  19. while ($i < 30) {
  20. sleep(1);
  21. $i++;
  22. }
  23. $this->handle();
  24. }
  25. }