From 44da9d65950d2bac5ae73b34a8a73b61acb74358 Mon Sep 17 00:00:00 2001 From: pro Date: Fri, 23 Jan 2026 12:09:20 +0900 Subject: [PATCH] =?UTF-8?q?fix:=EC=9E=85=EC=B6=9C=EA=B8=88=EB=82=B4?= =?UTF-8?q?=EC=97=AD=20=EC=83=81=EB=8C=80=EB=B0=A9=E2=86=92=EC=83=81?= =?UTF-8?q?=EB=8C=80=EA=B3=84=EC=A2=8C=EC=98=88=EA=B8=88=EC=A3=BC=EB=AA=85?= =?UTF-8?q?=20=EB=B3=80=EA=B2=BD=20=EB=B0=8F=20CERTKEY=20=EB=B6=84?= =?UTF-8?q?=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 상대방 레이블을 상대계좌예금주명으로 변경 - AccountName 필드 우선 확인 (Cast fallback) - EaccountController CERTKEY 테스트/운영 분리 적용 Co-Authored-By: Claude Opus 4.5 --- app/Http/Controllers/Barobill/EaccountController.php | 11 +++++++---- resources/views/barobill/eaccount/index.blade.php | 2 +- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/app/Http/Controllers/Barobill/EaccountController.php b/app/Http/Controllers/Barobill/EaccountController.php index 91bc2cf9..cebb14fd 100644 --- a/app/Http/Controllers/Barobill/EaccountController.php +++ b/app/Http/Controllers/Barobill/EaccountController.php @@ -47,9 +47,12 @@ public function __construct() : 'https://ws.baroservice.com'; $this->soapUrl = $baseUrl . '/BANKACCOUNT.asmx?WSDL'; } else { - $this->certKey = config('services.barobill.cert_key', ''); - $this->corpNum = config('services.barobill.corp_num', ''); $this->isTestMode = config('services.barobill.test_mode', true); + // 테스트 모드에 따라 적절한 CERT_KEY 선택 + $this->certKey = $this->isTestMode + ? config('services.barobill.cert_key_test', '') + : config('services.barobill.cert_key_prod', ''); + $this->corpNum = config('services.barobill.corp_num', ''); $this->soapUrl = $this->isTestMode ? 'https://testws.baroservice.com/BANKACCOUNT.asmx?WSDL' : 'https://ws.baroservice.com/BANKACCOUNT.asmx?WSDL'; @@ -439,7 +442,7 @@ private function parseTransactionLogs($resultData, string $defaultBankName = '', 'balance' => $balance, 'balanceFormatted' => number_format($balance), 'summary' => $fullSummary, - 'cast' => $log->Cast ?? '', + 'cast' => $log->AccountName ?? $log->Cast ?? '', 'memo' => $log->Memo ?? '', 'transOffice' => $log->TransOffice ?? '', // 저장된 계정과목 정보 병합 @@ -706,7 +709,7 @@ public function exportExcel(Request $request): StreamedResponse|JsonResponse '입금', '출금', '잔액', - '상대방', + '상대계좌예금주명', '계정과목코드', '계정과목명' ]); diff --git a/resources/views/barobill/eaccount/index.blade.php b/resources/views/barobill/eaccount/index.blade.php index 979e8311..11849cc1 100644 --- a/resources/views/barobill/eaccount/index.blade.php +++ b/resources/views/barobill/eaccount/index.blade.php @@ -285,7 +285,7 @@ className="flex items-center gap-2 px-4 py-2 bg-blue-100 text-blue-700 rounded-l 입금 출금 잔액 - 상대방 + 상대계좌예금주명 계정과목