1
13693261870
2025-01-15 15e626bfb9d8b368e674dab564a353d27f6b3d29
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 AjaxResult.success("ok", encryptedJson);
    }
}