From 1d2d7d4bc711480776df3e2be9cc6d4943f1a9df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EB=B3=B4=EA=B3=A4?= Date: Tue, 3 Feb 2026 20:49:47 +0900 Subject: [PATCH] =?UTF-8?q?fix:=EB=B0=94=EB=A1=9C=EB=B9=8C=20=EA=B3=84?= =?UTF-8?q?=EC=A2=8C/=EC=B9=B4=EB=93=9C=20=EC=A1=B0=ED=9A=8C=20API=20?= =?UTF-8?q?=EC=9D=91=EB=8B=B5=20=EB=A1=9C=EA=B9=85=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 디버깅을 위한 API 응답 상세 로깅 추가 - 데이터 타입 및 실제 응답 내용 로그 기록 Co-Authored-By: Claude Opus 4.5 --- app/Services/Barobill/BarobillUsageService.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/app/Services/Barobill/BarobillUsageService.php b/app/Services/Barobill/BarobillUsageService.php index 0ed448d5..3ac55fd8 100644 --- a/app/Services/Barobill/BarobillUsageService.php +++ b/app/Services/Barobill/BarobillUsageService.php @@ -178,6 +178,15 @@ protected function getBankAccountCount(BarobillMember $member, string $startDate try { $result = $this->barobillService->getBankAccounts($member->biz_no, true); + Log::info('계좌 조회 API 응답', [ + 'member_id' => $member->id, + 'biz_no' => $member->biz_no, + 'server_mode' => $member->server_mode, + 'success' => $result['success'] ?? false, + 'data_type' => isset($result['data']) ? gettype($result['data']) : 'null', + 'data' => $result['data'] ?? null, + ]); + if ($result['success'] && isset($result['data'])) { // 배열이면 count if (is_array($result['data'])) { @@ -212,6 +221,15 @@ protected function getCardCount(BarobillMember $member, string $startDate, strin try { $result = $this->barobillService->getCards($member->biz_no, true); + Log::info('카드 조회 API 응답', [ + 'member_id' => $member->id, + 'biz_no' => $member->biz_no, + 'server_mode' => $member->server_mode, + 'success' => $result['success'] ?? false, + 'data_type' => isset($result['data']) ? gettype($result['data']) : 'null', + 'data' => $result['data'] ?? null, + ]); + if ($result['success'] && isset($result['data'])) { // 배열이면 count if (is_array($result['data'])) {