fix:발송 방식 선택 UI 개선 - 이메일/알림톡 선택 가능, 이메일 기본값, 리마인더 발송 방식 모달 추가
This commit is contained in:
@@ -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,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user