<?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 X1RTJ; X1RTJ: if ($this->_retryIndex >= count($this->_retryTimes)) { return false; } goto QW0mN; QW0mN: $qGFR2 = $this->_retryTimes[$this->_retryIndex]; goto ktEvC; R74A3: $thLtT->_retryIndex = $this->_retryIndex + 1; goto fBAML; rFSTY: $thLtT = new $qR81v(); goto xx2Fd; xx2Fd: $thLtT->_retryTimes = $this->_retryTimes; goto R74A3; vVj8l: return true; goto nhswO; ME78f: $this->dispatch($thLtT); goto vVj8l; HazrF: $thLtT->delay($qGFR2); goto ME78f; ktEvC: $qR81v = get_class($this); goto rFSTY; fBAML: foreach (get_object_vars($this) as $pztz4 => $Q0rz2) { if (in_array($pztz4, array('job', '_retryTimes', '_retryIndex'))) { continue; } $thLtT->{$pztz4} = $Q0rz2; } goto HazrF; nhswO: } }