From 52213c3ad496c91b76d88cacf9988f63ff5d6cc6 Mon Sep 17 00:00:00 2001 From: jjstyle Date: Fri, 23 Jan 2026 19:26:12 +0900 Subject: [PATCH] =?UTF-8?q?vrfcReqModel=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Services/NaverService.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/Services/NaverService.php b/app/Services/NaverService.php index 725282b..d10ea11 100644 --- a/app/Services/NaverService.php +++ b/app/Services/NaverService.php @@ -50,6 +50,14 @@ class NaverService */ public function processArticle(array $payload) { + // 🟢 방어 코드: null이면 여기서라도 할당 + if ($this->rawStagingModel === null) { + $this->rawStagingModel = new \App\Models\Entities\NaverRawStagingModel(); + } + if ($this->naverClient === null) { + $this->naverClient = new \App\Libraries\NaverApiClient(); + } + $articleNumber = $payload['articleNumber']; $requestType = $payload['requestType'] ?? ''; @@ -63,6 +71,8 @@ class NaverService $rawData = $response['data']; $vType = $rawData['verificationTypeCode'] ?? ''; + + // 2. [Staging] 원본 DB 저장 (JSON 타입 컬럼 활용) $this->rawStagingModel->insert([ 'atcl_no' => $articleNumber,