vrfcReqModel 수정
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user