refactor(jpush): update IOS notification alert format to use map
All checks were successful
Build Backend / build (push) Successful in 2m14s
Build Backend / build-docker (push) Successful in 1m11s

Change the `Alert` field in `IOSNotif` from a string to a map containing `title` and `body` to support structured notification content.
This commit is contained in:
2026-05-09 19:48:45 +08:00
parent 9f3215d4eb
commit 0b7faf08c0

View File

@@ -386,10 +386,12 @@ func BuildNotification(title, body string, notificationType string, extras map[s
Priority: 1, Priority: 1,
}, },
IOS: &IOSNotif{ IOS: &IOSNotif{
Alert: body, Alert: map[string]any{
"title": title,
"body": body,
},
Sound: "default", Sound: "default",
Badge: "+1", Badge: "+1",
MutableContent: true,
Extras: iosExtras, Extras: iosExtras,
}, },
} }