naverWorker 오류 수정
This commit is contained in:
@@ -102,8 +102,13 @@ class NaverWorker extends BaseCommand
|
|||||||
|
|
||||||
// 매물 정보 조회
|
// 매물 정보 조회
|
||||||
$articleInfojson = $naverClient->getArticleInfo($articleNumber);
|
$articleInfojson = $naverClient->getArticleInfo($articleNumber);
|
||||||
if (!$articleInfojson || !isset($articleInfojson['data']) || empty($articleInfojson['code'] !== 'success')) {
|
// if (!$articleInfojson || !isset($articleInfojson['data']) || empty($articleInfojson['code'] !== 'success')) {
|
||||||
throw new \Exception("매물 정보 조회 실패: $articleNumber ::: message : " . ($articleInfojson['message'] ?? 'No response'));
|
// throw new \Exception("매물 정보 조회 실패: $articleNumber ::: message : " . ($articleInfojson['message'] ?? 'No response'));
|
||||||
|
// }
|
||||||
|
|
||||||
|
if (!$articleInfojson || !isset($articleInfojson['data']) || $articleInfojson['code'] !== 'success') {
|
||||||
|
$msg = $articleInfojson['message'] ?? 'No message';
|
||||||
|
throw new \Exception("네이버 API 응답 에러: $articleNumber | 메시지: $msg");
|
||||||
}
|
}
|
||||||
|
|
||||||
$articleInfo = $articleInfojson['data'];
|
$articleInfo = $articleInfojson['data'];
|
||||||
|
|||||||
Reference in New Issue
Block a user