1234567891011121314151617181920212223242526272829303132333435 |
- <?php
- namespace App\Console\Commands;
- use App\DataApi\Helper\RefundApplyHelper;
- use Illuminate\Support\Facades\Log;
- class syncRefundApplyStatus extends \Illuminate\Console\Command
- {
- protected $signature = "refund_apply_status:sync";
- protected $description = 'refund_apply_status sync';
- public function __construct()
- {
- parent::__construct();
- }
- public function handle()
- {
- $RefundApplyHelper = new RefundApplyHelper;
- $RefundApplyHelper->syncRefundApplyStatus();
- Log::info('同步返费申请状态成功,请等待下次更新');
- $i = 0;
- //半小时同步一次
- while ($i < 600) {
- sleep(1);
- $i++;
- }
- $this->handle();
- }
- }
|