<?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($c6i2z, $LnjH9, $xcAHX, $eTwx_, $KJ3xr = array()); public function send($c6i2z, $xcAHX, $H09n_, $JKXDQ = array(), $LnjH9 = null, $KJ3xr = array(), $WQ9HU = null) { goto etzr5; t7j4i: try { goto N_Z3g; t41Be: BizException::throwsIfResponseError($Gs3Xd); goto HDFr2; HDFr2: return Response::generateSuccess(); goto TNNp6; N_Z3g: $Gs3Xd = $this->sendExecute($c6i2z, $LnjH9, $xcAHX, $eTwx_, $KJ3xr); goto t41Be; TNNp6: } catch (BizException $hSVcc) { return Response::generateError($hSVcc->getMessage()); } goto y_GRn; etzr5: $wFt7y = $H09n_; goto d899L; d899L: if (!view()->exists($wFt7y)) { $wFt7y = 'theme.' . modstart_config()->getWithEnv('siteTemplate', 'default') . '.mail.' . $H09n_; if (!view()->exists($wFt7y)) { $wFt7y = 'theme.default.mail.' . $H09n_; if (!view()->exists($wFt7y)) { if ($WQ9HU) { $wFt7y = 'module::' . $WQ9HU . '.View.mail.' . $H09n_; } if (!view()->exists($wFt7y)) { $wFt7y = 'module::Vendor.View.mail.' . $H09n_; } } } } goto sQtNG; fuBWx: if (null === $LnjH9) { $LnjH9 = $c6i2z; } goto FNoGz; FNoGz: $eTwx_ = View::make($wFt7y, $JKXDQ)->render(); goto t7j4i; sQtNG: if (!view()->exists($wFt7y)) { throw new \Exception('mail view not found : ' . $wFt7y); } goto fuBWx; y_GRn: } }