<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Vendor\Email; use Illuminate\Support\Facades\View; use ModStart\Core\Exception\BizException; use ModStart\Core\Input\Response; abstract class AbstractEmailSender { protected abstract function sendExecute($FoN15, $PuXeu, $yY1CO, $MPmfx, $EPwwc = array()); public function send($FoN15, $yY1CO, $XPQ0m, $YxsLg = array(), $PuXeu = null, $EPwwc = array(), $lMMoV = null) { goto Gufj_; nSfi0: if (null === $PuXeu) { $PuXeu = $FoN15; } goto qFMZP; SSu6_: if (!view()->exists($RzPgc)) { $RzPgc = 'theme.' . modstart_config()->getWithEnv('siteTemplate', 'default') . '.mail.' . $XPQ0m; if (!view()->exists($RzPgc)) { $RzPgc = 'theme.default.mail.' . $XPQ0m; if (!view()->exists($RzPgc)) { if ($lMMoV) { $RzPgc = 'module::' . $lMMoV . '.View.mail.' . $XPQ0m; } if (!view()->exists($RzPgc)) { $RzPgc = 'module::Vendor.View.mail.' . $XPQ0m; } } } } goto c0rOm; pdsxq: try { goto wSYur; SP9lt: return Response::generateSuccess(); goto c39Eb; wSYur: $Ecj99 = $this->sendExecute($FoN15, $PuXeu, $yY1CO, $MPmfx, $EPwwc); goto aMMut; aMMut: BizException::throwsIfResponseError($Ecj99); goto SP9lt; c39Eb: } catch (BizException $fWY9h) { return Response::generateError($fWY9h->getMessage()); } goto MfKvZ; c0rOm: if (!view()->exists($RzPgc)) { throw new \Exception('mail view not found : ' . $RzPgc); } goto nSfi0; qFMZP: $MPmfx = View::make($RzPgc, $YxsLg)->render(); goto pdsxq; Gufj_: $RzPgc = $XPQ0m; goto SSu6_; MfKvZ: } }