From 1b90db90e4b836e33aa36b58a147c7d9db8552e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=BD=87=E9=98=B3?= Date: Tue, 25 Jun 2024 14:31:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CPF_Cef/FrmMain.cs | 19 ++++--------------- CPF_Cef/MainModel.cs | 1 - 2 files changed, 4 insertions(+), 16 deletions(-) diff --git a/CPF_Cef/FrmMain.cs b/CPF_Cef/FrmMain.cs index 248db71..c65ba08 100644 --- a/CPF_Cef/FrmMain.cs +++ b/CPF_Cef/FrmMain.cs @@ -53,15 +53,6 @@ namespace AksWebBrowser { PresenterFor = this, Name = nameof(Parame.webBrowser), - Bindings = - { - { - nameof(CusWebBrowser.Title), - "Title", - //this, - //BindingMode.OneWayToSource - }, - }, MarginTop=0, MarginLeft=0, MarginRight=0, @@ -86,15 +77,13 @@ namespace AksWebBrowser MainModel.DeviceControllerInit(); Parame.webBrowser = FindPresenterByName(nameof(Parame.webBrowser)); textBox = FindPresenterByName(nameof(textBox)); - Parame.webBrowser.CusRequest.CusResquestEvent += CusRequest_CusResquestEvent; - //浏览器大小 Parame.webBrowser.Width = w; Parame.webBrowser.Height = h; - Parame.webBrowser.Url = "http://127.0.0.1:8096/#/main-out"; - // Parame.webBrowser.Url = "http://192.168.0.232:8848/html/index.html"; - //Parame.webBrowser.Url = "http://192.168.0.34:8078/#/main-out"; + //Parame.webBrowser.Url = "http://127.0.0.1:8096/#/main-out"; + //Parame.webBrowser.Url = "http://192.168.0.232:8848/html/index.html"; + Parame.webBrowser.Url = "http://192.168.0.34:8078/#/main-out"; //Parame.webBrowser.Url = Application.StartupPath + @"\html\index.html"; //开发者工具暂时只能支持Windows //webBrowser.ShowDev(); @@ -110,7 +99,7 @@ namespace AksWebBrowser MainModel.KillProcessByName("AksWebBrowser"); } - bool showDev = false; + bool showDev = true; private void WebBrowser_LoadEnd(object sender, LoadEndEventArgs e) { if (!showDev) diff --git a/CPF_Cef/MainModel.cs b/CPF_Cef/MainModel.cs index a898153..399b2bd 100644 --- a/CPF_Cef/MainModel.cs +++ b/CPF_Cef/MainModel.cs @@ -1112,7 +1112,6 @@ namespace AksWebBrowser }); if (!isFuncisFuncObject("playVideo")) { - return "{\"timestamp\":\"" + Utils.GetTimestamp() + "\",\"message\":\"Falied\",\"code\":\"400\",\"status\":false,\"data\":\"" + "视频播放设备未授权使用" + "\"}"; } else