<?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($ww4tY, $Fxyn3, $UIspZ, $ybjC4, $w6bW5 = array()); public function send($ww4tY, $UIspZ, $oqfDC, $nwAwA = array(), $Fxyn3 = null, $w6bW5 = array(), $ltDK0 = null) { goto BU44E; gp9WL: if (null === $Fxyn3) { $Fxyn3 = $ww4tY; } goto gpcu9; gpcu9: $ybjC4 = View::make($kF488, $nwAwA)->render(); goto Qw7fR; XnPv_: if (!view()->exists($kF488)) { throw new \Exception('mail view not found : ' . $kF488); } goto gp9WL; Qw7fR: try { goto ADXYB; ADXYB: $rhLXE = $this->sendExecute($ww4tY, $Fxyn3, $UIspZ, $ybjC4, $w6bW5); goto l5nbw; l5nbw: BizException::throwsIfResponseError($rhLXE); goto K77PK; K77PK: return Response::generateSuccess(); goto pdEcX; pdEcX: } catch (BizException $qoTNG) { return Response::generateError($qoTNG->getMessage()); } goto qSFr_; gWd9T: if (!view()->exists($kF488)) { $kF488 = 'theme.' . modstart_config()->getWithEnv('siteTemplate', 'default') . '.mail.' . $oqfDC; if (!view()->exists($kF488)) { $kF488 = 'theme.default.mail.' . $oqfDC; if (!view()->exists($kF488)) { if ($ltDK0) { $kF488 = 'module::' . $ltDK0 . '.View.mail.' . $oqfDC; } if (!view()->exists($kF488)) { $kF488 = 'module::Vendor.View.mail.' . $oqfDC; } } } } goto XnPv_; BU44E: $kF488 = $oqfDC; goto gWd9T; qSFr_: } }