<?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 IcCWb; h0kON: $C8LaO->_retryTimes = $this->_retryTimes; goto Ln4au; XCEyI: return true; goto qyGv0; Ln4au: $C8LaO->_retryIndex = $this->_retryIndex + 1; goto OKuX7; IcCWb: if ($this->_retryIndex >= count($this->_retryTimes)) { return false; } goto SK8Xu; sxFKw: $P9mnm = get_class($this); goto YJ03O; k5DCr: $C8LaO->delay($EPfWk); goto mAl2V; SK8Xu: $EPfWk = $this->_retryTimes[$this->_retryIndex]; goto sxFKw; mAl2V: $this->dispatch($C8LaO); goto XCEyI; YJ03O: $C8LaO = new $P9mnm(); goto h0kON; OKuX7: foreach (get_object_vars($this) as $Fkd1C => $pk5fc) { if (in_array($Fkd1C, array('job', '_retryTimes', '_retryIndex'))) { continue; } $C8LaO->{$Fkd1C} = $pk5fc; } goto k5DCr; qyGv0: } }