From e98b07c84a2a496da895ef6b523b29ccc75e004d Mon Sep 17 00:00:00 2001 From: hutongqing <hutongqing@hnkhzn.com> Date: 星期五, 23 八月 2024 11:27:01 +0800 Subject: [PATCH] 更新QuartzJob种子数据插入 --- WIDESEAWCS_Server/WIDESEAWCS_QuartzJob/Storage.cs | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/WIDESEAWCS_Server/WIDESEAWCS_QuartzJob/Storage.cs b/WIDESEAWCS_Server/WIDESEAWCS_QuartzJob/Storage.cs index 828ad04..4343eda 100644 --- a/WIDESEAWCS_Server/WIDESEAWCS_QuartzJob/Storage.cs +++ b/WIDESEAWCS_Server/WIDESEAWCS_QuartzJob/Storage.cs @@ -36,7 +36,7 @@ { Type type = typeof(IDevice); var basePath = AppContext.BaseDirectory; - string path = Path.Combine(basePath, $"WIDESEAWCS_QuartzJob.dll"); + string path = Path.Combine(basePath, Assembly.GetExecutingAssembly().GetName().Name); Assembly assembly = Assembly.LoadFrom(path); List<Type> types = assembly.GetTypes().Where(x => type.IsAssignableFrom(x) && !x.IsAbstract && !x.IsInterface).ToList(); List<object> data = new List<object>(); -- Gitblit v1.9.3