From f37d44a3cd90337504a5ea36e0d25d6e435499a2 Mon Sep 17 00:00:00 2001
From: 13693261870 <252740454@qq.com>
Date: 星期三, 08 二月 2023 11:07:46 +0800
Subject: [PATCH] 1

---
 DataLoader/CS/Importor.cs    |    6 +++---
 DataLoader/DataLoader.csproj |    5 ++++-
 2 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/DataLoader/CS/Importor.cs b/DataLoader/CS/Importor.cs
index c493907..401565e 100644
--- a/DataLoader/CS/Importor.cs
+++ b/DataLoader/CS/Importor.cs
@@ -113,15 +113,15 @@
                     int start = GetSubPath(target, 1);
                     SysMeta mf = GetMetaFile(vd, start, guid);
 
+                    vd.Status = "澶嶅埗鏂囦欢...";
+                    CopyFile(vd.FilePath, Path.Combine(target, mf.path));
+
                     int metaId = InsertMeta(mf);
                     if (metaId == 0)
                     {
                         vd.Status = "鍏冩暟鎹嚭閿欙紒";
                         return;
                     }
-
-                    vd.Status = "澶嶅埗鏂囦欢...";
-                    CopyFile(vd.FilePath, Path.Combine(target, mf.path));
 
                     vd.Status = "瀹屾垚銆�";
                 }
diff --git a/DataLoader/DataLoader.csproj b/DataLoader/DataLoader.csproj
index 35a59d8..c86c4ce 100644
--- a/DataLoader/DataLoader.csproj
+++ b/DataLoader/DataLoader.csproj
@@ -20,7 +20,7 @@
     </NuGetPackageImportStamp>
   </PropertyGroup>
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
-    <PlatformTarget>AnyCPU</PlatformTarget>
+    <PlatformTarget>x64</PlatformTarget>
     <DebugSymbols>true</DebugSymbols>
     <DebugType>full</DebugType>
     <Optimize>false</Optimize>
@@ -38,6 +38,9 @@
     <ErrorReport>prompt</ErrorReport>
     <WarningLevel>4</WarningLevel>
   </PropertyGroup>
+  <PropertyGroup>
+    <StartupObject>DataLoader.App</StartupObject>
+  </PropertyGroup>
   <ItemGroup>
     <Reference Include="CefSharp, Version=108.4.130.0, Culture=neutral, PublicKeyToken=40c4b6fc221f4138, processorArchitecture=MSIL">
       <HintPath>..\packages\CefSharp.Common.108.4.130\lib\net452\CefSharp.dll</HintPath>

--
Gitblit v1.9.3