<?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 b7mr_; X4l79: $FXIe1->_retryTimes = $this->_retryTimes; goto tCZjX; OPDMT: $ngR5H = $this->_retryTimes[$this->_retryIndex]; goto bcxGm; tCZjX: $FXIe1->_retryIndex = $this->_retryIndex + 1; goto rM_Qh; Z5n33: $this->dispatch($FXIe1); goto V3KAS; rM_Qh: foreach (get_object_vars($this) as $RTHJ6 => $F6Fus) { if (in_array($RTHJ6, array('job', '_retryTimes', '_retryIndex'))) { continue; } $FXIe1->{$RTHJ6} = $F6Fus; } goto AT0GL; RnAaP: $FXIe1 = new $q9Yer(); goto X4l79; b7mr_: if ($this->_retryIndex >= count($this->_retryTimes)) { return false; } goto OPDMT; bcxGm: $q9Yer = get_class($this); goto RnAaP; AT0GL: $FXIe1->delay($ngR5H); goto Z5n33; V3KAS: return true; goto wa8h3; wa8h3: } }