api_receiver 리턴 메세지 수정

This commit is contained in:
2026-01-02 10:05:55 +09:00
parent 7627951c09
commit 094fa7c640
3 changed files with 55 additions and 34 deletions

View File

@@ -34,7 +34,7 @@ class NaverApiClient
/**
* CURL 공통 실행 함수
*/
private function request(string $method, string $url, array $data = null): ?array
private function request(string $method, string $url, ?array $data = null): ?array
{
/**
* curl --location 'https://test-b2b.land.naver.com/kiso/center/verification-article/2500000001?charger=admin' \
@@ -79,7 +79,7 @@ class NaverApiClient
curl_close($ch);
// 결과 로그 기록 (성공/실패 모두 기록하여 추적 가능하게 함)
if ($httpCode === 200) {
if ($httpCode === 200 && $httpdCode === 202) {
log_message('info', "[Naver API $method SUCCESS] URL: $url | Response: $response");
} else {
log_message('error', "[Naver API $method FAIL] URL: $url | Code: $httpCode | Response: $response");