|
|
|
@@ -4,12 +4,14 @@ namespace App\Http\Controllers\Web\Email; |
|
|
|
|
|
|
|
use App\Codes\Email; |
|
|
|
use App\Email\BaseEmailer; |
|
|
|
use App\Email\Members\ChangePlanOrderApprove; |
|
|
|
use App\Email\Members\EntryApprove; |
|
|
|
use App\Email\Members\EntryPaymentComplete; |
|
|
|
use App\Email\Members\TerminateOrderApprove; |
|
|
|
use App\Email\Members\UserInfoUpdateOrderApprove; |
|
|
|
use App\Email\Members\VehicleInfoUpdateOrderApprove; |
|
|
|
use App\Http\Controllers\Web\FromKintoneController; |
|
|
|
use App\Kintone\Models\ChangePlanApplication; |
|
|
|
use App\Kintone\Models\SeasonTicketContract; |
|
|
|
use App\Kintone\Models\SeasonTicketContractEntry; |
|
|
|
use App\Kintone\Models\TerminateApplication; |
|
|
|
@@ -54,6 +56,10 @@ class EmailSendController extends FromKintoneController |
|
|
|
if ($this->emailManager === null) { |
|
|
|
throw new LogicException("EmailManager不正"); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
info(sprintf("Email送信依頼受信 %s [%s]", $this->param->emailId->value, json_encode($request->toArray()))); |
|
|
|
|
|
|
|
$this->emailManager->confirm(); |
|
|
|
} catch (Exception $e) { |
|
|
|
LoggingUtil::debugException($e); |
|
|
|
@@ -100,6 +106,12 @@ class EmailSendController extends FromKintoneController |
|
|
|
$this->setEmail(new EntryPaymentComplete($parking, $entry, $plan)); |
|
|
|
return; |
|
|
|
} |
|
|
|
if ($emailId === Email::CHANGE_PLAN_ORDER_APPROVE) { |
|
|
|
$application = ChangePlanApplication::findByApplicationNo($this->param->applicationNo); |
|
|
|
$seasonTicketContract = SeasonTicketContract::find($application->seasonTicketContractRecordNo); |
|
|
|
$this->setEmail(new ChangePlanOrderApprove($seasonTicketContract, $application)); |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if ($this->email === null || $this->emailManager === null) { |
|
|
|
|