<?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 dO0g9; dLfAe: $Nd2zo->_retryIndex = $this->_retryIndex + 1; goto r5SwD; dO0g9: if ($this->_retryIndex >= count($this->_retryTimes)) { return false; } goto tdoFQ; sBVvh: return true; goto e_w2L; r5SwD: foreach (get_object_vars($this) as $plrwN => $uTz0e) { if (in_array($plrwN, array('job', '_retryTimes', '_retryIndex'))) { continue; } $Nd2zo->{$plrwN} = $uTz0e; } goto PNZUJ; PNZUJ: $Nd2zo->delay($qAFHU); goto ihE0s; tdoFQ: $qAFHU = $this->_retryTimes[$this->_retryIndex]; goto Ik8SE; VC7XF: $Nd2zo->_retryTimes = $this->_retryTimes; goto dLfAe; Ik8SE: $iyWnS = get_class($this); goto mQrKW; mQrKW: $Nd2zo = new $iyWnS(); goto VC7XF; ihE0s: $this->dispatch($Nd2zo); goto sBVvh; e_w2L: } }