diff --git a/Core/Init.cs b/Core/Init.cs
index 69e43630..5a69c7db 100644
--- a/Core/Init.cs
+++ b/Core/Init.cs
@@ -122,7 +122,7 @@ private static void StartParameterInitialization(string[] args)
///
- /// 获取Core初始化完成后的运行毫秒数
+ /// 获取Core初始化完成后的运行秒数
///
///
public static double GetRunTime()
diff --git a/Desktop/MainWindow.xaml.cs b/Desktop/MainWindow.xaml.cs
index 253ad024..b7f36dad 100644
--- a/Desktop/MainWindow.xaml.cs
+++ b/Desktop/MainWindow.xaml.cs
@@ -113,7 +113,7 @@ public void Init()
Detect.detectRoom.LiveStart += DetectRoom_LiveStart;
//初始化VLC播放器组件
LibVLCSharp.Shared.Core.Initialize("./plugins/vlc");
-
+
}
private void InitializeTitleMode()
@@ -303,8 +303,15 @@ private void LoginStatus_LoginFailureEvent(object? sender, EventArgs e)
DataSource.LoginStatus.LoginWindowDisplayStatus = true;
Dispatcher.Invoke(() =>
{
- QrLogin qrLogin = new QrLogin();
- qrLogin.ShowDialog();
+ if (Core.Init.GetRunTime() < 90)
+ {
+ QrLogin qrLogin = new QrLogin();
+ qrLogin.ShowDialog();
+ }
+ else
+ {
+ MainWindow.SnackbarService.Show("登录态检查失败", $"检查账号信息的登陆状态有效性失败,该提示一般是由于登录态已过期造成的(如账号在其他地方登陆过多,异地登录等触发风控),也有可能是网络不稳定造成,如果频繁提示或者录制失败请尝试重新登陆,重新登陆请到设置-登录态管理中进行", ControlAppearance.Primary, new SymbolIcon(SymbolRegular.CloudError20), TimeSpan.FromSeconds(30));
+ }
});
}
diff --git a/Desktop/Views/Windows/VlcPlayWindow.xaml.cs b/Desktop/Views/Windows/VlcPlayWindow.xaml.cs
index 93a5d349..471809e4 100644
--- a/Desktop/Views/Windows/VlcPlayWindow.xaml.cs
+++ b/Desktop/Views/Windows/VlcPlayWindow.xaml.cs
@@ -407,7 +407,7 @@ private void AddDanmu(string DanmuText, bool IsSubtitle, long uid = 0)
break;
}
}
-
+ double b = Core.Init.GetRunTime();
danMuOrbitInfos[Index].Time = (int)(Init.GetRunTime() + 5);
//非UI线程调用UI组件
System.Windows.Application.Current.Dispatcher.Invoke(async () =>