| | |
| | | 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; |
| | |
| | | } |
| | | } |
| | | |
| | | @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); |
| | | } |
| | | } |