From 6f98b0fde45fddd51641a9ede69a3c534eeef11c Mon Sep 17 00:00:00 2001 From: lunaticbum Date: Wed, 6 May 2026 17:21:45 +0900 Subject: [PATCH] .. --- src/main/kotlin/network/NewsService.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/network/NewsService.kt b/src/main/kotlin/network/NewsService.kt index dc766d8..9c34de4 100644 --- a/src/main/kotlin/network/NewsService.kt +++ b/src/main/kotlin/network/NewsService.kt @@ -156,11 +156,11 @@ object NewsService { val command = if (isWindows) { // 윈도우용: 큰따옴표 이스케이프에 주의해야 합니다. - val jsonBody = "{\"id\":\"$chatId\",\"message\":\"$message\"}" + val jsonBody = "{\"id\":\"$chatId\",\"message\":\"$encodedMessage\"}" listOf("cmd", "/c", "curl -s -X POST $url -H \"Content-Type: application/json\" -d \"$jsonBody\"") } else { // 맥/리눅스용: 홑따옴표를 사용하여 JSON 구조를 보호합니다. - val jsonBody = "{\"id\":\"$chatId\",\"message\":\"$message\"}" + val jsonBody = "{\"id\":\"$chatId\",\"message\":\"$encodedMessage\"}" listOf("curl", "-s", "-X", "POST", url, "-H", "Content-Type: application/json", "-d", jsonBody) }