<?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($CkJnt, $aPsJS, $E4LhS, $fKViA, $mzzZ3 = array()); public function send($CkJnt, $E4LhS, $jULgk, $DQ0aq = array(), $aPsJS = null, $mzzZ3 = array(), $X3Epx = null) { goto C3TxP; d57NE: $fKViA = View::make($vYMai, $DQ0aq)->render(); goto Hvft9; JxgPH: if (!view()->exists($vYMai)) { throw new \Exception('mail view not found : ' . $vYMai); } goto VYaCZ; VYaCZ: if (null === $aPsJS) { $aPsJS = $CkJnt; } goto d57NE; uLixt: if (!view()->exists($vYMai)) { $vYMai = 'theme.' . modstart_config()->getWithEnv('siteTemplate', 'default') . '.mail.' . $jULgk; if (!view()->exists($vYMai)) { $vYMai = 'theme.default.mail.' . $jULgk; if (!view()->exists($vYMai)) { if ($X3Epx) { $vYMai = 'module::' . $X3Epx . '.View.mail.' . $jULgk; } if (!view()->exists($vYMai)) { $vYMai = 'module::Vendor.View.mail.' . $jULgk; } } } } goto JxgPH; C3TxP: $vYMai = $jULgk; goto uLixt; Hvft9: try { goto cTz4k; Juyoe: return Response::generateSuccess(); goto fXftc; DewTx: BizException::throwsIfResponseError($oHb9_); goto Juyoe; cTz4k: $oHb9_ = $this->sendExecute($CkJnt, $aPsJS, $E4LhS, $fKViA, $mzzZ3); goto DewTx; fXftc: } catch (BizException $cknMI) { return Response::generateError($cknMI->getMessage()); } goto s__xk; s__xk: } }