From d07154d92334ba2ec312bf738a2a02a60350d5d9 Mon Sep 17 00:00:00 2001 From: skyouc Date: 星期一, 29 九月 2025 13:34:21 +0800 Subject: [PATCH] 2. pda 组托加减号 应该是整数加减(完成) 3. 站点状态,显示清楚 (完成) 4. 站点保存报错, 修改人,创建人员显示 错误(完成) 5. agv入库不显示 历史库位记录 (完成) 6. 任务类型,应该为入库 (完成) --- src/main/java/com/zy/system/entity/license/LicenseVerify.java | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/zy/system/entity/license/LicenseVerify.java b/src/main/java/com/zy/system/entity/license/LicenseVerify.java index 2175930..fd95fca 100644 --- a/src/main/java/com/zy/system/entity/license/LicenseVerify.java +++ b/src/main/java/com/zy/system/entity/license/LicenseVerify.java @@ -3,8 +3,11 @@ import de.schlichtherle.license.*; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; +import org.apache.tomcat.util.http.fileupload.IOUtils; import java.io.File; +import java.io.FileOutputStream; +import java.io.InputStream; import java.text.DateFormat; import java.text.MessageFormat; import java.text.SimpleDateFormat; @@ -28,6 +31,12 @@ LicenseManager licenseManager = LicenseManagerHolder.getInstance(initLicenseParam(param)); licenseManager.uninstall(); + InputStream inputStream = this.getClass().getClassLoader().getResourceAsStream(param.getLicensePath()); + File file = new File(param.getLicensePath()); + try (FileOutputStream out = new FileOutputStream(file)) { + IOUtils.copy(inputStream, out); + } + result = licenseManager.install(new File(param.getLicensePath())); logger.info(MessageFormat.format("璁稿彲璇佸姞杞芥垚鍔燂紝璁稿彲璇佹湁鏁堟湡锛歿0} - {1}",format.format(result.getNotBefore()),format.format(result.getNotAfter()))); }catch (Exception e){ -- Gitblit v1.9.1