Login now send a notification

This commit is contained in:
2025-08-17 23:43:13 +08:00
parent add16ffdad
commit 2761abf405
5 changed files with 59 additions and 8 deletions

View File

@@ -28,7 +28,7 @@ namespace DysonNetwork.Sphere.Resources.Localization {
internal static System.Resources.ResourceManager ResourceManager {
get {
if (object.Equals(null, resourceMan)) {
System.Resources.ResourceManager temp = new System.Resources.ResourceManager("DysonNetwork.Sphere.Resources.Localization.NotificationResource", typeof(NotificationResource).Assembly);
System.Resources.ResourceManager temp = new System.Resources.ResourceManager("DysonNetwork.Pass.Resources.Localization.NotificationResource", typeof(NotificationResource).Assembly);
resourceMan = temp;
}
return resourceMan;
@@ -158,5 +158,17 @@ namespace DysonNetwork.Sphere.Resources.Localization {
return ResourceManager.GetString("OrderPaidBody", resourceCulture);
}
}
internal static string NewLoginTitle {
get {
return ResourceManager.GetString("NewLoginTitle", resourceCulture);
}
}
internal static string NewLoginBody {
get {
return ResourceManager.GetString("NewLoginBody", resourceCulture);
}
}
}
}

View File

@@ -80,4 +80,10 @@
<data name="OrderPaidBody" xml:space="preserve">
<value>{0} {1} was removed from your wallet to pay {2}</value>
</data>
<data name="NewLoginTitle" xml:space="preserve">
<value>New login detected</value>
</data>
<data name="NewLoginBody" xml:space="preserve">
<value>Your account logged on to a device named {0} at {1}</value>
</data>
</root>

View File

@@ -72,4 +72,10 @@
<data name="OrderPaidBody" xml:space="preserve">
<value>{0} {1} 已从你的帐户中扣除来支付 {2}</value>
</data>
<data name="NewLoginTitle" xml:space="preserve">
<value>检测到新登陆</value>
</data>
<data name="NewLoginBody" xml:space="preserve">
<value>您的帐号在位于 {1} 的设备 {0} 上刚刚登陆了</value>
</data>
</root>