<?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 AL6Px; Suh71: $GL9R2 = get_class($this); goto ib3cG; wJBQX: foreach (get_object_vars($this) as $U9AsU => $ohYVl) { if (in_array($U9AsU, array('job', '_retryTimes', '_retryIndex'))) { continue; } $Ci5Dn->{$U9AsU} = $ohYVl; } goto CnjBV; AL6Px: if ($this->_retryIndex >= count($this->_retryTimes)) { return false; } goto ho04O; CnjBV: $Ci5Dn->delay($SPSQQ); goto zuD8A; BHRSy: return true; goto BwISK; Hp6Ei: $Ci5Dn->_retryIndex = $this->_retryIndex + 1; goto wJBQX; zuD8A: $this->dispatch($Ci5Dn); goto BHRSy; osB65: $Ci5Dn->_retryTimes = $this->_retryTimes; goto Hp6Ei; ho04O: $SPSQQ = $this->_retryTimes[$this->_retryIndex]; goto Suh71; ib3cG: $Ci5Dn = new $GL9R2(); goto osB65; BwISK: } }