url解码快捷指令参数

This commit is contained in:
Fin 2025-02-21 18:33:34 +08:00
parent 13b1a198d1
commit 786e5f2232

View File

@ -46,10 +46,11 @@ struct PushToCurrentIntent: AppIntent {
var params: [String: Any] = [:]
if let title {
params["title"] = title
params["title"] = title.urlDecoded()
}
if let body {
params["body"] = body
// url body
params["body"] = body.urlDecoded()
}
if title == nil, body == nil {
params["body"] = "Empty Notification"