<?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($dRXuh, $b2BhF, $vGHhs, $n16LT, $qOrzw = array()); public function send($dRXuh, $vGHhs, $Aj5L2, $QmY2j = array(), $b2BhF = null, $qOrzw = array(), $k8GtY = null) { goto ECu3P; m_7Iu: if (!view()->exists($qVdRh)) { $qVdRh = 'theme.' . modstart_config()->getWithEnv('siteTemplate', 'default') . '.mail.' . $Aj5L2; if (!view()->exists($qVdRh)) { $qVdRh = 'theme.default.mail.' . $Aj5L2; if (!view()->exists($qVdRh)) { if ($k8GtY) { $qVdRh = 'module::' . $k8GtY . '.View.mail.' . $Aj5L2; } if (!view()->exists($qVdRh)) { $qVdRh = 'module::Vendor.View.mail.' . $Aj5L2; } } } } goto pztFJ; RpXv3: try { goto bGgn3; bGgn3: $Tbn6c = $this->sendExecute($dRXuh, $b2BhF, $vGHhs, $n16LT, $qOrzw); goto GESSu; GESSu: BizException::throwsIfResponseError($Tbn6c); goto Drt2J; Drt2J: return Response::generateSuccess(); goto KoRPh; KoRPh: } catch (BizException $ZemkG) { return Response::generateError($ZemkG->getMessage()); } goto B9ID3; k2pJI: if (null === $b2BhF) { $b2BhF = $dRXuh; } goto CPWZ0; pztFJ: if (!view()->exists($qVdRh)) { throw new \Exception('mail view not found : ' . $qVdRh); } goto k2pJI; CPWZ0: $n16LT = View::make($qVdRh, $QmY2j)->render(); goto RpXv3; ECu3P: $qVdRh = $Aj5L2; goto m_7Iu; B9ID3: } }