diff --git a/app/Services/NaverService.php b/app/Services/NaverService.php index 1ca6cd8..7d93c44 100644 --- a/app/Services/NaverService.php +++ b/app/Services/NaverService.php @@ -325,10 +325,23 @@ class NaverService if (!$model->insert($vrfcParam)) { $dbError = $this->db->error(); + $lastQuery = (string)$model->getLastQuery(); + + // 🚨 μ—λŸ¬ λ°œμƒ μ‹œ 상세 정보 좜λ ₯ + CLI::write(CLI::color('❌ SQL INSERT ERROR', 'red', 'bold')); + CLI::write(CLI::color('λ©”μ‹œμ§€: ', 'white') . $dbError['message']); + CLI::write(CLI::color('쿼리 μ‹€ν–‰: ', 'white') . (string)$model->getLastQuery()); + + // μž…λ ₯ν•˜λ €λ˜ 데이터 덀프 (λ””λ²„κΉ…μš©) + CLI::write(CLI::color('μž…λ ₯ 데이터:', 'yellow')); + print_r($vrfcParam); + + throw new \Exception("μ‹ κ·œ 등둝 μ‹€νŒ¨: " . $dbError['message']); } $vr_sq = $model->getInsertID(); + CLI::write(CLI::color("βœ… Insert 성곡 (vr_sq: $vr_sq)", 'blue')); // 🟒 μ—¬κΈ°μ„œ Null μ—λŸ¬ λ°©μ§€ (getStatusService μ‚¬μš©) $this->getStatusService()->recordStatusAndHistory($vr_sq, '10', 'C9', "NEW μ‹ κ·œμ ‘μˆ˜ : 10"); @@ -391,7 +404,7 @@ class NaverService 'sync_yn' => $sync_yn, 'rgbk_confirm_owner_nm' => null, 'direct_trad_yn' => ($rawData['seller']['isDirectTrade'] ?? false) ? 'Y' : 'N', - 'confirm_doc_img_url' => $confirm_doc_img_url, + 'confirm_doc_img_url' => json_encode($confirm_doc_img_url), 'confirm_doc_owner_check_yn' => null, 'certRegister' => json_encode($certRegister), 'referenceFileUrl' => json_encode($referenceFileUrl),