<?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 bMTQK; z17lD: return true; goto IQGjr; FTdsP: $VSmEG = $this->_retryTimes[$this->_retryIndex]; goto h11m9; m8LNf: $this->dispatch($qy3NR); goto z17lD; bMTQK: if ($this->_retryIndex >= count($this->_retryTimes)) { return false; } goto FTdsP; uyfXz: $qy3NR->_retryTimes = $this->_retryTimes; goto t20Ak; h11m9: $N56xu = get_class($this); goto oUw0B; WyG9o: $qy3NR->delay($VSmEG); goto m8LNf; t20Ak: $qy3NR->_retryIndex = $this->_retryIndex + 1; goto Vm8Kv; Vm8Kv: foreach (get_object_vars($this) as $lxIPA => $knQyJ) { if (in_array($lxIPA, array('job', '_retryTimes', '_retryIndex'))) { continue; } $qy3NR->{$lxIPA} = $knQyJ; } goto WyG9o; oUw0B: $qy3NR = new $N56xu(); goto uyfXz; IQGjr: } }