123456789101112131415161718192021222324252627282930313233 |
- <?php
- namespace App\Console\Commands;
- use App\DataApi\Helper\GetpayHelper;
- use Illuminate\Support\Facades\Log;
- class SelectGetpayRemit extends \Illuminate\Console\Command
- {
- protected $signature = "getpay_remit:select";
- protected $description = 'getpay_remit select';
- public function __construct()
- {
- parent::__construct();
- }
- public function handle()
- {
- $GetpayHelper = new GetpayHelper();
- $GetpayHelper->selectGetpayRemit();
- Log::info('定时任务:执行完成打款状态查询,等待下次执行');
- $i = 0;
- while ($i < 30) {
- sleep(1);
- $i++;
- }
- $this->handle();
- }
- }
|