提交
This commit is contained in:
parent
e4f1e87342
commit
9364b3a21c
@ -81,6 +81,13 @@ namespace Wpf_AiSportsMicrospace
|
|||||||
private void Window_Loaded(object sender, RoutedEventArgs e)
|
private void Window_Loaded(object sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
_mainWin.HumanFrameUpdated += OnHumanFrameUpdated;
|
_mainWin.HumanFrameUpdated += OnHumanFrameUpdated;
|
||||||
|
|
||||||
|
if (_mainWin.WebcamClient==null)
|
||||||
|
{
|
||||||
|
HandyControl.Controls.MessageBox.Show("摄像头网络异常,请重新连接!");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
_mainWin.WebcamClient.StartExtract();
|
_mainWin.WebcamClient.StartExtract();
|
||||||
Utils.PreloadGifs();
|
Utils.PreloadGifs();
|
||||||
Load_Base();
|
Load_Base();
|
||||||
|
|||||||
@ -62,7 +62,7 @@ namespace Wpf_AiSportsMicrospace.Views
|
|||||||
using var scope = App.AppHost.Services.CreateScope();
|
using var scope = App.AppHost.Services.CreateScope();
|
||||||
var db = scope.ServiceProvider.GetRequiredService<AppDbContext>();
|
var db = scope.ServiceProvider.GetRequiredService<AppDbContext>();
|
||||||
var BaseData = await db.BasicConfig.FirstOrDefaultAsync();
|
var BaseData = await db.BasicConfig.FirstOrDefaultAsync();
|
||||||
var host = "172.17.30.66";
|
var host = "172.17.30.64";
|
||||||
var name = "admin";
|
var name = "admin";
|
||||||
var password = "yd708090";
|
var password = "yd708090";
|
||||||
if (BaseData != null) {
|
if (BaseData != null) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user