<?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($ynBrC, $m41TW, $WNH3r, $V0Dls, $uxJUJ = array()); public function send($ynBrC, $WNH3r, $np9vN, $DlEFb = array(), $m41TW = null, $uxJUJ = array(), $FgH5V = null) { goto QZbps; li14g: $V0Dls = View::make($faKDa, $DlEFb)->render(); goto uk4dA; YTnIa: if (!view()->exists($faKDa)) { throw new \Exception('mail view not found : ' . $faKDa); } goto QRn7N; QRn7N: if (null === $m41TW) { $m41TW = $ynBrC; } goto li14g; uk4dA: try { goto t3idE; m0jMH: return Response::generateSuccess(); goto JpXVS; IdhI_: BizException::throwsIfResponseError($ZrjxR); goto m0jMH; t3idE: $ZrjxR = $this->sendExecute($ynBrC, $m41TW, $WNH3r, $V0Dls, $uxJUJ); goto IdhI_; JpXVS: } catch (BizException $RWZxh) { return Response::generateError($RWZxh->getMessage()); } goto izDWJ; QZbps: $faKDa = $np9vN; goto K_UW_; K_UW_: if (!view()->exists($faKDa)) { $faKDa = 'theme.' . modstart_config()->getWithEnv('siteTemplate', 'default') . '.mail.' . $np9vN; if (!view()->exists($faKDa)) { $faKDa = 'theme.default.mail.' . $np9vN; if (!view()->exists($faKDa)) { if ($FgH5V) { $faKDa = 'module::' . $FgH5V . '.View.mail.' . $np9vN; } if (!view()->exists($faKDa)) { $faKDa = 'module::Vendor.View.mail.' . $np9vN; } } } } goto YTnIa; izDWJ: } }