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); };