From d33faf9454469587f4d10a8acfc8f84b2c40b4e9 Mon Sep 17 00:00:00 2001 From: schangxiang@126.com <schangxiang@126.com> Date: 周三, 11 6月 2025 17:03:00 +0800 Subject: [PATCH] 22 --- Api/Util/AuthorizeHelper.cs | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/Api/Util/AuthorizeHelper.cs b/Api/Util/AuthorizeHelper.cs index b59e150..a97c2b9 100644 --- a/Api/Util/AuthorizeHelper.cs +++ b/Api/Util/AuthorizeHelper.cs @@ -17,11 +17,16 @@ { try { + var licenseFolerName = input.LicenseFolerName; + if (string.IsNullOrEmpty(licenseFolerName)) + { + licenseFolerName = "lic"; + } //1銆佽幏鍙杕ac鍦板潃 var macAddresses = EnDecode.GetAllMacAddresses(); //2銆佹壘鍒� 鎺堟潈鏂囦欢 string baseDir = AppDomain.CurrentDomain.BaseDirectory; - DirectoryInfo theFolder = new DirectoryInfo(baseDir + @"\\AuthorizeFile\\lic"); + DirectoryInfo theFolder = new DirectoryInfo(baseDir + @"\\AuthorizeFile\\" + licenseFolerName); //閬嶅巻鏂囦欢,璇诲彇绗竴涓枃浠� var files = theFolder.GetFiles(); if (files.Length == 0) -- Gitblit v1.9.3