<?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 T_pkt; RAUjN: $this->dispatch($JTczp); goto y8012; SQ9Ry: $NF2Na = get_class($this); goto f8E1p; T_pkt: if ($this->_retryIndex >= count($this->_retryTimes)) { return false; } goto hKq6b; vTC02: foreach (get_object_vars($this) as $F_a6B => $JiRHR) { if (in_array($F_a6B, array('job', '_retryTimes', '_retryIndex'))) { continue; } $JTczp->{$F_a6B} = $JiRHR; } goto QkTyz; y8012: return true; goto flnWn; f8E1p: $JTczp = new $NF2Na(); goto zLxu2; trOv1: $JTczp->_retryIndex = $this->_retryIndex + 1; goto vTC02; QkTyz: $JTczp->delay($dZHAF); goto RAUjN; hKq6b: $dZHAF = $this->_retryTimes[$this->_retryIndex]; goto SQ9Ry; zLxu2: $JTczp->_retryTimes = $this->_retryTimes; goto trOv1; flnWn: } }