Commit 53b5febe LN

配置增加默认值

1 个父辈 a8d6bd04
......@@ -115,6 +115,11 @@ namespace OnlineStore.DeviceLibrary
try
{
string vfile = Application.StartupPath + ConfigAppSettings.GetValue(Setting_Init.VisionConfigFile);
if (String.IsNullOrEmpty(vfile))
{
vfile = @"\Camera.json";
}
if (!String.IsNullOrEmpty(vfile))
{
vision = new Asa.Camera.VisionLib(vfile, "RollingLogFileAppender");
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!