<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Vendor\Mail; use ModStart\Core\Job\BaseJob; use Module\Vendor\Log\Logger; class MailSendJob extends BaseJob { public $email; public $subject; public $template; public $templateData = array(); public $emailUserName = null; public $option = array(); public $module; public static function create($VjXez, $POE6d, $pwVFJ, $OQfgJ = array(), $s2vDf = null, $aY5Ol = array(), $HPO1p = 0, $DOMdu = null) { goto hN2CT; eABu4: if ($HPO1p > 0) { $kPI6X->delay($HPO1p); } goto ldcK2; cQZyy: $kPI6X->emailUserName = $s2vDf; goto Paf8m; rgwVX: $kPI6X->template = $pwVFJ; goto a5oNK; ldcK2: app('Illuminate\\Contracts\\Bus\\Dispatcher')->dispatch($kPI6X); goto DNUZY; RNp5b: $kPI6X->subject = $POE6d; goto rgwVX; TysLt: $kPI6X->module = $DOMdu; goto K7pYj; a5oNK: $kPI6X->templateData = $OQfgJ; goto cQZyy; K7pYj: $kPI6X->onQueue('DefaultJob'); goto eABu4; hN2CT: $kPI6X = new MailSendJob(); goto L8m0g; Paf8m: $kPI6X->option = $aY5Ol; goto TysLt; L8m0g: $kPI6X->email = $VjXez; goto RNp5b; DNUZY: } public function handle() { goto O7Xyp; O7Xyp: Logger::info('Email', 'Start', $this->email . ' -> ' . $this->subject . ' -> ' . $this->template); goto Ga9Sl; Ga9Sl: MailUtil::send($this->email, $this->subject, $this->template, $this->templateData, $this->emailUserName, $this->option, $this->module); goto I2_vc; I2_vc: Logger::info('Email', 'End', $this->email . ' -> ' . $this->subject); goto SLk6W; SLk6W: } }