vrfcReqModel 수정

This commit is contained in:
2026-01-23 21:37:01 +09:00
parent 1de224627e
commit 20e6398005

View File

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