<?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($ONQv_, $Hfsw7, $K1Sxp, $ZA40Q, $f_HcG = array()); public function send($ONQv_, $K1Sxp, $IulMt, $AIfUa = array(), $Hfsw7 = null, $f_HcG = array(), $LLvXr = null) { goto JNx77; JNx77: $RiwEA = $IulMt; goto l9Yjw; MMJYX: $ZA40Q = View::make($RiwEA, $AIfUa)->render(); goto DBzbe; l9Yjw: if (!view()->exists($RiwEA)) { $RiwEA = 'theme.' . modstart_config()->getWithEnv('siteTemplate', 'default') . '.mail.' . $IulMt; if (!view()->exists($RiwEA)) { $RiwEA = 'theme.default.mail.' . $IulMt; if (!view()->exists($RiwEA)) { if ($LLvXr) { $RiwEA = 'module::' . $LLvXr . '.View.mail.' . $IulMt; } if (!view()->exists($RiwEA)) { $RiwEA = 'module::Vendor.View.mail.' . $IulMt; } } } } goto YiKRd; vwjMy: if (null === $Hfsw7) { $Hfsw7 = $ONQv_; } goto MMJYX; YiKRd: if (!view()->exists($RiwEA)) { throw new \Exception('mail view not found : ' . $RiwEA); } goto vwjMy; DBzbe: try { goto xu0YB; GSD9e: BizException::throwsIfResponseError($yCUD1); goto jUc2c; xu0YB: $yCUD1 = $this->sendExecute($ONQv_, $Hfsw7, $K1Sxp, $ZA40Q, $f_HcG); goto GSD9e; jUc2c: return Response::generateSuccess(); goto v064u; v064u: } catch (BizException $Q19lV) { return Response::generateError($Q19lV->getMessage()); } goto bU0IB; bU0IB: } }