banned cross device check

This commit is contained in:
2026-08-03 17:27:23 +08:00
parent ac77d4db10
commit a3b7d3d876
3 changed files with 121 additions and 4 deletions
+1 -1
View File
@@ -937,7 +937,7 @@ function createApp({
item.deviceId === deviceId && item.notificationId === notificationId
);
if (!exists) {
return { success: true, notificationId, deleted: 0, idempotent: true };
return { success: false, errMsg: "Panel 通知不存在" };
}
database.panelNotifications = database.panelNotifications.filter((item) =>
!(item.deviceId === deviceId && item.notificationId === notificationId)