Api/AuthorizeFile/licwms/DevLicense_LA23042_20250403114713.json | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
Api/Dto/ValidateLicenseInput.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
Api/Util/AuthorizeHelper.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
Api/AuthorizeFile/licwms/DevLicense_LA23042_20250403114713.json
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,4 @@ { "LicenseData": "WZ7UY415L8zvhzlSMT7xcaKyNrYGDsazZWngC\u002BOpPoO6W1hscH5qdO6jwh38DT0ALHmTQAno9A4vz2/8LlPEzD4RpXOMPiwUL7CJdfhnaPKYntx57wSbiRCxrFJ9yTsOWx73l3IrLdxLuBvCEhOhlcOWCX8bsPXUYaPraKP1twI=", "Signature": "tMf\u002BVuxwKPwDzAE8n\u002B5ETkflqiyMjdguVHeqQNp\u002Bpts=" } Api/Dto/ValidateLicenseInput.cs
@@ -3,8 +3,13 @@ public class ValidateLicenseInput { /// <summary> /// é¢è¦å¤©æ°é ç½® /// é¢è¦å¤©æ°é ç½®(éå¡«) /// </summary> public int? WaringDays { get; set; } /// <summary> /// æææä»¶å¤¹å(éå¡«) /// </summary> public string? LicenseFolerName { get; set; } } } Api/Util/AuthorizeHelper.cs
@@ -17,11 +17,16 @@ { try { var licenseFolerName = input.LicenseFolerName; if (string.IsNullOrEmpty(licenseFolerName)) { licenseFolerName = "lic"; } //1ãè·åmacå°å 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)