fix:발송 방식 선택 UI 개선 - 이메일/알림톡 선택 가능, 이메일 기본값, 리마인더 발송 방식 모달 추가

This commit is contained in:
김보곤
2026-02-19 23:55:28 +09:00
parent 3724bc4475
commit 7849c63507
3 changed files with 61 additions and 17 deletions

View File

@@ -843,12 +843,15 @@ public function remind(Request $request, int $id): JsonResponse
->orderBy('sign_order')
->first();
// 요청에서 발송 방식 지정이 있으면 우선 사용, 없으면 계약 저장값, 최종 기본값은 email
$sendMethod = $request->input('send_method') ?: ($contract->send_method ?? 'email');
$notificationResults = [];
if ($nextSigner) {
$nextSigner->update(['status' => 'notified']);
$results = $this->dispatchNotification(
$contract, $nextSigner,
$contract->send_method ?? 'email',
$sendMethod,
$contract->sms_fallback ?? true,
isReminder: true,
);