<?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($ber3G, $oVg5w, $UFLoy, $Ral1i, $FRVtF = array()); public function send($ber3G, $UFLoy, $eMuYk, $EIJx6 = array(), $oVg5w = null, $FRVtF = array(), $z_J2N = null) { goto RiuO5; RiuO5: $N8SrS = $eMuYk; goto BoGym; YF2TL: $Ral1i = View::make($N8SrS, $EIJx6)->render(); goto NohVK; uP9kG: if (!view()->exists($N8SrS)) { throw new \Exception('mail view not found : ' . $N8SrS); } goto jl6Sx; NohVK: try { goto lKpFw; RO_NY: BizException::throwsIfResponseError($gMg9x); goto uwjHU; lKpFw: $gMg9x = $this->sendExecute($ber3G, $oVg5w, $UFLoy, $Ral1i, $FRVtF); goto RO_NY; uwjHU: return Response::generateSuccess(); goto WntfN; WntfN: } catch (BizException $re7gC) { return Response::generateError($re7gC->getMessage()); } goto C2iKR; jl6Sx: if (null === $oVg5w) { $oVg5w = $ber3G; } goto YF2TL; BoGym: if (!view()->exists($N8SrS)) { $N8SrS = 'theme.' . modstart_config()->getWithEnv('siteTemplate', 'default') . '.mail.' . $eMuYk; if (!view()->exists($N8SrS)) { $N8SrS = 'theme.default.mail.' . $eMuYk; if (!view()->exists($N8SrS)) { if ($z_J2N) { $N8SrS = 'module::' . $z_J2N . '.View.mail.' . $eMuYk; } if (!view()->exists($N8SrS)) { $N8SrS = 'module::Vendor.View.mail.' . $eMuYk; } } } } goto uP9kG; C2iKR: } }