Browse Source

修改找不到report.ai 报错的bug

songxuekui 2 năm trước cách đây
mục cha
commit
e259608f56
2 tập tin đã thay đổi với 5 bổ sung4 xóa
  1. 2 1
      AutoAnalysis/AutoAnalysisDialog.cs
  2. 3 3
      app.config

+ 2 - 1
AutoAnalysis/AutoAnalysisDialog.cs

@@ -2361,8 +2361,9 @@ namespace Metis.AutoAnalysis
         {
             List<string> lstResult = new List<string>();
             string filename = dir + "\\report.ai";
-            if (Directory.Exists(dir) == false)
+            if (Directory.Exists(filename) == false)
                 return lstResult;
+
             var totalFiles = Directory.GetFiles(dir, "*.jpg");
             int count = 1;//只取1张
 

+ 3 - 3
app.config

@@ -20,9 +20,9 @@
     <!-- 框架映射配置 -->
     <add key="DAL" value="PaintDotNet.Data" />
     <add key="ClientSettingsProvider.ServiceUri" value="" />
-	<add key = "server_ip" value="127.0.0.1"/>
-	<add key = "server_port" value="8000"/>
-    <add key = "sampleinfo_dir" value="D:\SampleInfo"/>
+	<add key="server_ip" value="192.168.1.4" />
+	<add key="server_port" value="2863" />
+	<add key="sampleinfo_dir" value="C:\Users\dell\Desktop\共享文件夹" />
   </appSettings>
   <system.data>
     <DbProviderFactories>