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