Bläddra i källkod

广告位优化

Lishi
xxe 2 år sedan
förälder
incheckning
6020049c0a
2 ändrade filer med 5 tillägg och 2 borttagningar
  1. +4
    -1
      HKCardOUT/Views/AdWindow.xaml.cs
  2. +1
    -1
      HKCardOUT/options.json

+ 4
- 1
HKCardOUT/Views/AdWindow.xaml.cs Visa fil

@@ -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 Visa fil

@@ -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"
}


Laddar…
Avbryt
Spara