fixed a bug
This commit is contained in:
@@ -19,7 +19,9 @@ namespace Reader
|
||||
{
|
||||
var configPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "appsettings.json");
|
||||
var jsonContent = System.IO.File.ReadAllText(configPath);
|
||||
ServerUrl = jsonContent.Replace("\"", "").Split(':')[1].Replace("/", "").Trim();
|
||||
var start = jsonContent.IndexOf('"', jsonContent.IndexOf("ServerUrl") + 10);
|
||||
var end = jsonContent.IndexOf('"', start + 1);
|
||||
ServerUrl = jsonContent.Substring(start + 1, end - start - 1).Trim();
|
||||
}
|
||||
|
||||
public MainForm()
|
||||
|
||||
Reference in New Issue
Block a user