<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Core\Job; use Illuminate\Foundation\Bus\DispatchesJobs; class BaseRetryableJob extends BaseJob { use DispatchesJobs; public $_retryTimes = array(10, 30, 60, 600, 3600); public $_retryIndex = 0; public function retryNext() { goto mFTc5; fbS8C: return true; goto S2WYL; MxMpK: $SoU0U = new $p8Gyv(); goto SQrUb; MLIM9: $this->dispatch($SoU0U); goto fbS8C; ZV3lB: $SoU0U->_retryIndex = $this->_retryIndex + 1; goto BsTqW; MAz6F: $p8Gyv = get_class($this); goto MxMpK; BsTqW: foreach (get_object_vars($this) as $GBNIv => $VFelt) { if (in_array($GBNIv, array('job', '_retryTimes', '_retryIndex'))) { continue; } $SoU0U->{$GBNIv} = $VFelt; } goto mq31i; UDVNU: $DKe4S = $this->_retryTimes[$this->_retryIndex]; goto MAz6F; mq31i: $SoU0U->delay($DKe4S); goto MLIM9; SQrUb: $SoU0U->_retryTimes = $this->_retryTimes; goto ZV3lB; mFTc5: if ($this->_retryIndex >= count($this->_retryTimes)) { return false; } goto UDVNU; S2WYL: } }