提高加密推送参数的兼容性

close: #263
This commit is contained in:
Fin 2024-12-11 09:16:16 +08:00
parent 8a2a7fc2b4
commit 05d6ada326

View File

@ -84,8 +84,17 @@ class CiphertextProcessor: NotificationContentProcessor {
var result: [AnyHashable: Any] = [:]
for (key, val) in map {
// key
result[key.lowercased()] = val
// key,
var key = key.lowercased()
// value
var val = val
//
if let num = val as? NSNumber {
val = num.stringValue
}
result[key] = val
}
return result
}