From 4f2a329e4e6baf9193cbcd3d7cc5535fe487937c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B6=8C=ED=98=81=EC=84=B1?= Date: Thu, 29 Jan 2026 16:42:41 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=B6=9C=EA=B8=88=20=EC=98=A4=EB=8A=98?= =?UTF-8?q?=EC=9D=98=20=EC=9D=B4=EC=8A=88=20path=20=EB=B6=84=EA=B8=B0=20(1?= =?UTF-8?q?=EA=B1=B4:=20=EC=83=81=EC=84=B8,=202=EA=B1=B4+:=20=EB=AA=A9?= =?UTF-8?q?=EB=A1=9D)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.5 --- app/Services/TodayIssueObserverService.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/Services/TodayIssueObserverService.php b/app/Services/TodayIssueObserverService.php index 7ac892e..7f8bc4d 100644 --- a/app/Services/TodayIssueObserverService.php +++ b/app/Services/TodayIssueObserverService.php @@ -441,18 +441,20 @@ private function upsertWithdrawalDailyIssue(int $tenantId): void ?: $first->merchant_name ?: __('message.today_issue.unknown_client'); - // 1건이면 단건 메시지, 2건 이상이면 누계 메시지 + // 1건이면 단건 메시지+상세경로, 2건 이상이면 누계 메시지+목록경로 if ($count === 1) { $content = __('message.today_issue.withdrawal_registered', [ 'client' => $firstClientName, 'amount' => number_format($totalAmount), ]); + $path = "/accounting/withdrawals/{$first->id}"; } else { $content = __('message.today_issue.withdrawal_daily_summary', [ 'client' => $firstClientName, 'count' => $count - 1, 'amount' => number_format($totalAmount), ]); + $path = '/accounting/withdrawals'; } // source_id=null 로 일일 1건 upsert (FCM 미발송) @@ -462,7 +464,7 @@ private function upsertWithdrawalDailyIssue(int $tenantId): void sourceId: null, badge: TodayIssue::BADGE_WITHDRAWAL, content: $content, - path: '/accounting/withdrawals', + path: $path, needsApproval: false, expiresAt: Carbon::now()->addDays(7) );