vrfcReqModel 수정
This commit is contained in:
@@ -325,10 +325,23 @@ class NaverService
|
|||||||
|
|
||||||
if (!$model->insert($vrfcParam)) {
|
if (!$model->insert($vrfcParam)) {
|
||||||
$dbError = $this->db->error();
|
$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']);
|
throw new \Exception("신규 등록 실패: " . $dbError['message']);
|
||||||
}
|
}
|
||||||
|
|
||||||
$vr_sq = $model->getInsertID();
|
$vr_sq = $model->getInsertID();
|
||||||
|
CLI::write(CLI::color("✅ Insert 성공 (vr_sq: $vr_sq)", 'blue'));
|
||||||
// 🟢 여기서 Null 에러 방지 (getStatusService 사용)
|
// 🟢 여기서 Null 에러 방지 (getStatusService 사용)
|
||||||
$this->getStatusService()->recordStatusAndHistory($vr_sq, '10', 'C9', "NEW 신규접수 : 10");
|
$this->getStatusService()->recordStatusAndHistory($vr_sq, '10', 'C9', "NEW 신규접수 : 10");
|
||||||
|
|
||||||
@@ -391,7 +404,7 @@ class NaverService
|
|||||||
'sync_yn' => $sync_yn,
|
'sync_yn' => $sync_yn,
|
||||||
'rgbk_confirm_owner_nm' => null,
|
'rgbk_confirm_owner_nm' => null,
|
||||||
'direct_trad_yn' => ($rawData['seller']['isDirectTrade'] ?? false) ? 'Y' : 'N',
|
'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,
|
'confirm_doc_owner_check_yn' => null,
|
||||||
'certRegister' => json_encode($certRegister),
|
'certRegister' => json_encode($certRegister),
|
||||||
'referenceFileUrl' => json_encode($referenceFileUrl),
|
'referenceFileUrl' => json_encode($referenceFileUrl),
|
||||||
|
|||||||
Reference in New Issue
Block a user