mirror of
https://github.com/Finb/Bark.git
synced 2025-12-08 21:36:01 +00:00
url解码快捷指令参数
This commit is contained in:
parent
13b1a198d1
commit
786e5f2232
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user