<?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($Hku3r, $WWjeX, $Wecu1, $OfwYj, $quZRe = array()); public function send($Hku3r, $Wecu1, $sHXTa, $CJiXs = array(), $WWjeX = null, $quZRe = array(), $Ua5sf = null) { goto viVQ9; Zo9ah: $OfwYj = View::make($z619t, $CJiXs)->render(); goto oGOW_; sMJBK: if (null === $WWjeX) { $WWjeX = $Hku3r; } goto Zo9ah; viVQ9: $z619t = $sHXTa; goto oz6mx; oz6mx: if (!view()->exists($z619t)) { $z619t = 'theme.' . modstart_config()->getWithEnv('siteTemplate', 'default') . '.mail.' . $sHXTa; if (!view()->exists($z619t)) { $z619t = 'theme.default.mail.' . $sHXTa; if (!view()->exists($z619t)) { if ($Ua5sf) { $z619t = 'module::' . $Ua5sf . '.View.mail.' . $sHXTa; } if (!view()->exists($z619t)) { $z619t = 'module::Vendor.View.mail.' . $sHXTa; } } } } goto fMeRu; fMeRu: if (!view()->exists($z619t)) { throw new \Exception('mail view not found : ' . $z619t); } goto sMJBK; oGOW_: try { goto bMPUJ; wBUL8: return Response::generateSuccess(); goto tXU6F; Ten6c: BizException::throwsIfResponseError($om_hh); goto wBUL8; bMPUJ: $om_hh = $this->sendExecute($Hku3r, $WWjeX, $Wecu1, $OfwYj, $quZRe); goto Ten6c; tXU6F: } catch (BizException $se7TW) { return Response::generateError($se7TW->getMessage()); } goto yiyRa; yiyRa: } }