🐛 Fix wrong platform code on push notification

This commit is contained in:
LittleSheep 2025-06-01 01:17:05 +08:00
parent a78e92a23a
commit 9a96cf68bb

View File

@ -184,8 +184,8 @@ public class NotificationService(
{
int platformCode = value.Key switch
{
NotificationPushProvider.Google => 1,
NotificationPushProvider.Apple => 2,
NotificationPushProvider.Apple => 1,
NotificationPushProvider.Google => 2,
_ => throw new InvalidOperationException($"Unknown push provider: {value.Key}")
};