..
This commit is contained in:
parent
07a66a3fa3
commit
5c00152de9
@ -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 구조를 보호합니다.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user