<?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 A9e3c; NQy2W: $uBUts->_retryTimes = $this->_retryTimes; goto xKHRz; PlK_B: $tKOid = get_class($this); goto yS8RG; o47rL: return true; goto jahPd; Ph1YN: $uBUts->delay($lOyCp); goto VelUW; yS8RG: $uBUts = new $tKOid(); goto NQy2W; xKHRz: $uBUts->_retryIndex = $this->_retryIndex + 1; goto MK5cX; MK5cX: foreach (get_object_vars($this) as $B34tD => $Xz28r) { if (in_array($B34tD, array('job', '_retryTimes', '_retryIndex'))) { continue; } $uBUts->{$B34tD} = $Xz28r; } goto Ph1YN; A9e3c: if ($this->_retryIndex >= count($this->_retryTimes)) { return false; } goto M3Utd; VelUW: $this->dispatch($uBUts); goto o47rL; M3Utd: $lOyCp = $this->_retryTimes[$this->_retryIndex]; goto PlK_B; jahPd: } }