From a33e13ed19a16b03ac3be88fa47f5debd67b4499 Mon Sep 17 00:00:00 2001 From: shanji <18996038927@163.com> Date: Fri, 16 Jun 2023 22:20:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=AD=A3=E6=B3=A8=E5=86=8C=E5=AF=B9?= =?UTF-8?q?=E8=B1=A1=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BBWYB.Client/GlobalContext.cs | 2 +- BBWYB.Client/Views/WebB/WebB.xaml.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/BBWYB.Client/GlobalContext.cs b/BBWYB.Client/GlobalContext.cs index dbe2462..c6335b8 100644 --- a/BBWYB.Client/GlobalContext.cs +++ b/BBWYB.Client/GlobalContext.cs @@ -52,7 +52,7 @@ namespace BBWYB.Client return JsonConvert.SerializeObject(User); } - public string GetBBWYBApiVersion() + public string GetClientApiVersion() { return BBWYBApiVersion; } diff --git a/BBWYB.Client/Views/WebB/WebB.xaml.cs b/BBWYB.Client/Views/WebB/WebB.xaml.cs index ad34426..336db84 100644 --- a/BBWYB.Client/Views/WebB/WebB.xaml.cs +++ b/BBWYB.Client/Views/WebB/WebB.xaml.cs @@ -75,7 +75,7 @@ namespace BBWYB.Client.Views.WebB //var url = "http://qtbbwy.qiyue666.com"; w2m.CoreWebView2InitializationCompleted = (e) => { - w2m.wb2.CoreWebView2.AddHostObjectToScript("qtbbwybContext", this.globalContext); + w2m.wb2.CoreWebView2.AddHostObjectToScript("webContext", this.globalContext); isNavigated = true; w2m.wb2.CoreWebView2.Navigate(url); };