From 1a28efe38e6dcb9fb7a602519d3ed507c80a0feb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=B1=B3?= Date: Fri, 30 Oct 2020 18:16:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=BF=83=E8=B7=B3=E8=BF=9E?= =?UTF-8?q?=E6=8E=A5=E5=92=8C=E4=B8=80=E4=BA=9B=E6=8F=8F=E8=BF=B0=E6=96=87?= =?UTF-8?q?=E5=AD=97=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Auxiliary/MMPU.cs | 2 +- Auxiliary/VTBS/API.cs | 2 +- Auxiliary/bilibili.cs | 12 ++++++++++-- DDTVLiveRec/DDTVLiveRec.csproj | 2 +- DDTV_New/MainWindow.xaml.cs | 2 +- 5 files changed, 14 insertions(+), 6 deletions(-) diff --git a/Auxiliary/MMPU.cs b/Auxiliary/MMPU.cs index 0e1779af1..5822d2fde 100644 --- a/Auxiliary/MMPU.cs +++ b/Auxiliary/MMPU.cs @@ -241,7 +241,7 @@ public static void BiliUser配置文件初始化(int 模式) if (模式 == 1) { bilibili.BiliUser.登陆(); - InfoLog.InfoPrintf("\r\nB站账号登陆信息过期或无效,启动失败,请自行打开目录中的[BiliQR.png]或访问[http://本机IP:11419/login]使用B站客户端扫描二维码登陆", InfoLog.InfoClass.下载必要提示); + InfoLog.InfoPrintf("\r\nB站账号登陆信息过期或无效,启动失败,请自行打开目录中的[BiliQR.png]使用B站客户端扫描二维码登陆,或复制DDTV2的有效BiliUser.ini覆盖本地文件", InfoLog.InfoClass.下载必要提示); while (string.IsNullOrEmpty(MMPU.Cookie)) { diff --git a/Auxiliary/VTBS/API.cs b/Auxiliary/VTBS/API.cs index e1a309862..e17761286 100644 --- a/Auxiliary/VTBS/API.cs +++ b/Auxiliary/VTBS/API.cs @@ -44,7 +44,7 @@ private static string 返回延迟最低的连接(List<延迟对象> URL,double { for(int i=0;i 0 ? T : 1000.0; if(i!=0) { diff --git a/Auxiliary/bilibili.cs b/Auxiliary/bilibili.cs index 382a1fe63..0d84a4a80 100644 --- a/Auxiliary/bilibili.cs +++ b/Auxiliary/bilibili.cs @@ -288,18 +288,26 @@ public static void 初始化所有房间连接() WS连接组是否已经启动 = true; new Task(() => - { + { + int TJ = 16; while (true) { try { + + if(TJ>15) + { + InfoLog.InfoPrintf($":状态刷新,当前临时API监控房间数量:{RoomList.Count- 已连接的直播间状态.Count},稳定WSS长连接监控房间数量:{已连接的直播间状态.Count}" , InfoLog.InfoClass.下载必要提示); + TJ = 0; + } + TJ++; int num = 1; string BB = string.Empty; foreach (var item in 已连接的直播间状态) { TimeSpan ts = DateTime.Now.Subtract(item.心跳时间); BB += "\r\n" + num + " 时间差:" + (int)ts.TotalSeconds + "   房间号:" + item.房间号 + "  心跳值:" + item.心跳值 + "  上次更新时间" + item.心跳时间; - Console.WriteLine(num + " 时间差:" + (int)ts.TotalSeconds + "   房间号:" + item.房间号 + "  心跳值:" + item.心跳值 + "  上次更新时间" + item.心跳时间); + //Console.WriteLine(num + " 时间差:" + (int)ts.TotalSeconds + "   房间号:" + item.房间号 + "  心跳值:" + item.心跳值 + "  上次更新时间" + item.心跳时间); num++; } InfoLog.InfoPrintf("wss连接状态:" + BB, InfoLog.InfoClass.Debug); diff --git a/DDTVLiveRec/DDTVLiveRec.csproj b/DDTVLiveRec/DDTVLiveRec.csproj index fe9b676b7..e3086b81f 100644 --- a/DDTVLiveRec/DDTVLiveRec.csproj +++ b/DDTVLiveRec/DDTVLiveRec.csproj @@ -6,7 +6,7 @@ - + diff --git a/DDTV_New/MainWindow.xaml.cs b/DDTV_New/MainWindow.xaml.cs index 0eabd691a..3b9a8fb09 100644 --- a/DDTV_New/MainWindow.xaml.cs +++ b/DDTV_New/MainWindow.xaml.cs @@ -265,7 +265,7 @@ public void 软件启动配置初始化() } } - }, this, 4000); + }, this, 10000); //缩小功能 { MMPU.缩小功能 = int.Parse(MMPU.getFiles("Zoom", "0"));