Skip to content

Commit

Permalink
修复心跳连接和一些描述文字错误
Browse files Browse the repository at this point in the history
  • Loading branch information
CHKZL committed Oct 30, 2020
1 parent eb5ae63 commit 1a28efe
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Auxiliary/MMPU.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
{
Expand Down
2 changes: 1 addition & 1 deletion Auxiliary/VTBS/API.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ private static string 返回延迟最低的连接(List<延迟对象> URL,double
{
for(int i=0;i<num+1.0;i++)
{
double T = MMPU.测试延迟(item.CDN_URL + "/meta/ping");
double T = MMPU.测试延迟(item.CDN_URL + "/v1/vtbs");
double 延迟 = T > 0 ? T : 1000.0;
if(i!=0)
{
Expand Down
12 changes: 10 additions & 2 deletions Auxiliary/bilibili.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion DDTVLiveRec/DDTVLiveRec.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="BiliAccount" Version="2.5.0.22" />
<PackageReference Include="BiliAccount" Version="2.5.1.23" />
<PackageReference Include="System.Configuration.ConfigurationManager" Version="5.0.0-preview.3.20214.6" />
</ItemGroup>

Expand Down
2 changes: 1 addition & 1 deletion DDTV_New/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ public void 软件启动配置初始化()

}
}
}, this, 4000);
}, this, 10000);
//缩小功能
{
MMPU.缩小功能 = int.Parse(MMPU.getFiles("Zoom", "0"));
Expand Down

0 comments on commit 1a28efe

Please sign in to comment.