<?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 i7D0V; dcvzY: $ioaDF = get_class($this); goto zalFx; i7D0V: if ($this->_retryIndex >= count($this->_retryTimes)) { return false; } goto QpsqZ; nSRAi: return true; goto MbXUk; K2vWW: $B4QIU->_retryTimes = $this->_retryTimes; goto wnnnx; WKD9I: $this->dispatch($B4QIU); goto nSRAi; QpsqZ: $Q4rzQ = $this->_retryTimes[$this->_retryIndex]; goto dcvzY; zalFx: $B4QIU = new $ioaDF(); goto K2vWW; wnnnx: $B4QIU->_retryIndex = $this->_retryIndex + 1; goto OIoA8; CYsAz: $B4QIU->delay($Q4rzQ); goto WKD9I; OIoA8: foreach (get_object_vars($this) as $kh68j => $tHq0l) { if (in_array($kh68j, array('job', '_retryTimes', '_retryIndex'))) { continue; } $B4QIU->{$kh68j} = $tHq0l; } goto CYsAz; MbXUk: } }