vrfcReqModel 수정

This commit is contained in:
2026-01-23 19:26:12 +09:00
parent 87dd69d703
commit 52213c3ad4

View File

@@ -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,