diff --git a/app/Config/Constants.php b/app/Config/Constants.php index bf093d1..b458c47 100644 --- a/app/Config/Constants.php +++ b/app/Config/Constants.php @@ -82,8 +82,15 @@ defined('EXIT__AUTO_MAX') || define('EXIT__AUTO_MAX', 125); // highest automa /** * ncloud url */ -define('NCLOUD_OBJECT_STORAGE_URL', 'https://kr.object.ncloudstorage.com/confirms-object'); +// 환경별 버킷 설정 +if (ENVIRONMENT === 'development') { + define('NCLOUD_S3_BUCKET', 'confirms-object-test'); + define('NCLOUD_OBJECT_STORAGE_URL', 'https://kr.object.ncloudstorage.com/confirms-object-test'); +} else { + define('NCLOUD_S3_BUCKET', 'confirms-object'); + define('NCLOUD_OBJECT_STORAGE_URL', 'https://kr.object.ncloudstorage.com/confirms-object'); +} + define('NCLOUD_S3_KEY', 'ncp_iam_BPAMKR3l50hXJiQ6qpSP'); define('NCLOUD_S3_SECRET', 'ncp_iam_BPKMKRW2GU59UE59I1QftVGst6NJgnmbSc'); -define('NCLOUD_S3_BUCKET', 'confirms-object'); define('NCLOUD_S3_ENDPOINT', 'https://kr.object.ncloudstorage.com'); \ No newline at end of file diff --git a/app/Libraries/NaverApiClient.php b/app/Libraries/NaverApiClient.php index 9c27190..45bd7e1 100644 --- a/app/Libraries/NaverApiClient.php +++ b/app/Libraries/NaverApiClient.php @@ -46,6 +46,7 @@ class NaverApiClient return $this->request('PUT', $url, $updateData); } + /** * [POST] 4.매물검증 결과관리 * API:POST /kiso/center/verification-article/{매물번호}/report?charger={담당자명}