fix:바로빌 API 메서드에 테넌트별 서버 모드 적용
- 각 API 메서드(cards, transactions, accounts, issue 등)에서 테넌트의 server_mode 설정에 따라 SOAP 클라이언트 재초기화 - 기존에는 index()에서만 적용되어 별도 HTTP 요청인 API 호출 시 기본 설정으로 돌아가는 버그 수정 - EcardController, EaccountController, EtaxController, HometaxController 모두 적용 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -172,6 +172,11 @@ public function accounts(Request $request): JsonResponse
|
||||
$tenantId = session('selected_tenant_id', self::HEADQUARTERS_TENANT_ID);
|
||||
$barobillMember = BarobillMember::where('tenant_id', $tenantId)->first();
|
||||
|
||||
// 테넌트별 서버 모드 적용
|
||||
if ($barobillMember && $barobillMember->server_mode) {
|
||||
$this->applyMemberServerMode($barobillMember);
|
||||
}
|
||||
|
||||
// 바로빌 사용자 ID 결정
|
||||
$userId = $barobillMember?->barobill_id ?? '';
|
||||
|
||||
@@ -253,6 +258,11 @@ public function transactions(Request $request): JsonResponse
|
||||
$barobillMember = BarobillMember::where('tenant_id', $tenantId)->first();
|
||||
$userId = $barobillMember?->barobill_id ?? '';
|
||||
|
||||
// 테넌트별 서버 모드 적용
|
||||
if ($barobillMember && $barobillMember->server_mode) {
|
||||
$this->applyMemberServerMode($barobillMember);
|
||||
}
|
||||
|
||||
// DB에서 저장된 계정과목 데이터 조회
|
||||
$savedData = BankTransaction::getByDateRange($tenantId, $startDate, $endDate, $bankAccountNum ?: null);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user