From 2421ab222448e9db9bba26315c2bd4b7419e7a42 Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期二, 14 一月 2025 15:30:27 +0800 Subject: [PATCH] 1 --- se-modules/se-system/src/main/java/com/se/system/controller/SysSoftController.java | 17 +++++++++++++++-- 1 files changed, 15 insertions(+), 2 deletions(-) diff --git a/se-modules/se-system/src/main/java/com/se/system/controller/SysSoftController.java b/se-modules/se-system/src/main/java/com/se/system/controller/SysSoftController.java index cefa489..6ff6952 100644 --- a/se-modules/se-system/src/main/java/com/se/system/controller/SysSoftController.java +++ b/se-modules/se-system/src/main/java/com/se/system/controller/SysSoftController.java @@ -9,6 +9,7 @@ import com.se.system.domain.vo.NacosConfigVo; import com.se.system.service.NacosService; import com.se.system.service.inte.IAServerInfoService; +import com.se.system.utils.CommonUtils; import org.springframework.web.bind.annotation.*; import com.se.common.log.annotation.Log; import com.se.common.log.enums.BusinessType; @@ -128,11 +129,23 @@ } } - @GetMapping(value = "/test") - public AjaxResult test() { + @GetMapping(value = "/getServerInfo") + public AjaxResult getServerInfo() { LicenseExtraParamVo serverInfos = IAServerInfoService.getServer("").getServerInfos(); System.out.println("serverInfos = " + serverInfos); return success(serverInfos); } + + @GetMapping(value = "/getLicenseKey") + public AjaxResult getLicenseKey() throws Exception { + LicenseExtraParamVo serverInfos = IAServerInfoService.getServer("").getServerInfos(); + String jsonString = serverInfos.toJsonString(); + + System.out.println("鍘熷鏁版嵁 = " + jsonString); + String encryptedJson = CommonUtils.encrypt(jsonString); + System.out.println("鍔犲瘑鏁版嵁 = " + serverInfos); + + return success(encryptedJson); + } } -- Gitblit v1.9.3