Browse Source

广告位优化

Lishi
xxe 2 years ago
parent
commit
6020049c0a
2 changed files with 5 additions and 2 deletions
  1. +4
    -1
      HKCardOUT/Views/AdWindow.xaml.cs
  2. +1
    -1
      HKCardOUT/options.json

+ 4
- 1
HKCardOUT/Views/AdWindow.xaml.cs View File

@@ -28,10 +28,13 @@ namespace HKCardOUT.Views

public async void InitView2(string input)
{
StringBuilder sb = new StringBuilder();
sb.Append($"<html><body>{input}</body></html>");
var html = sb.ToString();
await view2.EnsureCoreWebView2Async(null);
view2.CoreWebView2.Settings.AreDefaultContextMenusEnabled = false;
view2.CoreWebView2.Settings.AreDevToolsEnabled = false;
view2.CoreWebView2.NavigateToString("<html><body><div>hello world</div></body></html>");
view2.CoreWebView2.NavigateToString(html);
}
}
}

+ 1
- 1
HKCardOUT/options.json View File

@@ -4,7 +4,7 @@
//定时任务时间表达式
"Cron": "0 0 11,15 * * ? ",
//店铺ID
"StoreId": "0ff87696-957b-475a-9dbf-41eae349dab4",
"StoreId": "a19535e8-119f-4b10-a011-6288fd3ddb37",
"ConnectionStrings": {
"Sqlite": "HKSQL.db3"
}


Loading…
Cancel
Save