This commit is contained in:
lunaticbum 2026-05-06 17:13:59 +09:00
parent 07a66a3fa3
commit 5c00152de9

View File

@ -156,7 +156,7 @@ object NewsService {
val command = if (isWindows) {
// 윈도우용: 큰따옴표 이스케이프에 주의해야 합니다.
val jsonBody = "{\"id\":\"$chatId\",\"message\":\"$encodedMessage\"}"
val jsonBody = "{\"id\":\"$chatId\",\"message\":\"$message\"}"
listOf("cmd", "/c", "curl -s -X POST $url -H \"Content-Type: application/json\" -d \"$jsonBody\"")
} else {
// 맥/리눅스용: 홑따옴표를 사용하여 JSON 구조를 보호합니다.