From 581110a3dfb2882de66795047dd4a9f248d33176 Mon Sep 17 00:00:00 2001
From: chengsc <Demo@DESKTOP-CPA90BF>
Date: 星期四, 15 八月 2024 13:21:15 +0800
Subject: [PATCH] 修改测试问题,添加托盘上架信息

---
 Wms/Utility/Job/InternalMethodJob.cs |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/Wms/Utility/Job/InternalMethodJob.cs b/Wms/Utility/Job/InternalMethodJob.cs
index 454c46b..87a3087 100644
--- a/Wms/Utility/Job/InternalMethodJob.cs
+++ b/Wms/Utility/Job/InternalMethodJob.cs
@@ -30,7 +30,15 @@
             try
             {
                 /// 鍔犺浇 WMS.BLL 绫诲簱
-                Assembly assembly = Assembly.LoadFrom("bin\\Debug\\netcoreapp3.1\\WMS.BLL.dll");
+                Assembly assembly;
+                try
+                {
+                    assembly = Assembly.LoadFrom("WMS.BLL.dll");
+                }
+                catch (Exception)
+                {
+                    assembly = Assembly.LoadFrom("bin\\Debug\\netcoreapp3.1\\WMS.BLL.dll");
+                }
 
                 // 鑾峰彇 WMS.BLL鐨勭被鍨�
                 Type classType = assembly.GetType("WMS.BLL." + className);

--
Gitblit v1.8.0