v2chghistorymodel 수정

This commit is contained in:
2026-01-16 15:42:19 +09:00
parent 6c97b88977
commit f154f494a6

View File

@@ -2,6 +2,7 @@
namespace App\Services; namespace App\Services;
use CodeIgniter\CLI\CLI;
use App\Libraries\NaverApiClient; use App\Libraries\NaverApiClient;
use App\Models\Entities\VrfcReqModel; use App\Models\Entities\VrfcReqModel;
use App\Models\Entities\V2stdailyModel; use App\Models\Entities\V2stdailyModel;
@@ -71,6 +72,7 @@ class NaverService
*/ */
private function insertVrfcReq($articleNumber, $params) private function insertVrfcReq($articleNumber, $params)
{ {
CLI::write(CLI::color('🟢 매물 정보 시작', 'green'));
$existing = $this->VrfcReqModel->where('atcl_no', $articleNumber)->first(); $existing = $this->VrfcReqModel->where('atcl_no', $articleNumber)->first();
if ($existing) throw new \Exception("중복 등록 시도: $articleNumber"); if ($existing) throw new \Exception("중복 등록 시도: $articleNumber");
@@ -334,7 +336,7 @@ class NaverService
'final_failure' => null 'final_failure' => null
]; ];
$vrfc_params = array_merge($vrfc_params, $articl_info_param, $article_info_etc_param); // $vrfc_params = array_merge($vrfc_params, $articl_info_param, $article_info_etc_param);
// 개인: INDIV => 0 // 개인: INDIV => 0
// 법인: CORP => 1 // 법인: CORP => 1