From d5449236ef0b3adafb3e4cc872f50479efa0ce7b Mon Sep 17 00:00:00 2001
From: zhangc <zc@123>
Date: 星期二, 11 三月 2025 16:10:29 +0800
Subject: [PATCH] 配置信息

---
 src/main/java/com/zy/system/entity/license/AbstractServerInfos.java |   20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/src/main/java/com/zy/system/entity/license/AbstractServerInfos.java b/src/main/java/com/zy/system/entity/license/AbstractServerInfos.java
index f771d16..0bcb433 100644
--- a/src/main/java/com/zy/system/entity/license/AbstractServerInfos.java
+++ b/src/main/java/com/zy/system/entity/license/AbstractServerInfos.java
@@ -19,7 +19,7 @@
     /**
      * 缁勮闇�瑕侀澶栨牎楠岀殑License鍙傛暟
      */
-    public LicenseCheck getServerInfos(){
+    public LicenseCheck getServerInfos() {
         LicenseCheck result = new LicenseCheck();
 
         try {
@@ -27,8 +27,8 @@
             result.setMacAddress(this.getMacAddress());
             result.setCpuSerial(this.getCPUSerial());
             result.setMainBoardSerial(this.getMainBoardSerial());
-        }catch (Exception e){
-            logger.error("鑾峰彇鏈嶅姟鍣ㄧ‖浠朵俊鎭け璐�",e);
+        } catch (Exception e) {
+            logger.error("鑾峰彇鏈嶅姟鍣ㄧ‖浠朵俊鎭け璐�", e);
         }
 
         return result;
@@ -68,8 +68,8 @@
                 InetAddress inetAddr = (InetAddress) inetAddresses.nextElement();
 
                 //鎺掗櫎LoopbackAddress銆丼iteLocalAddress銆丩inkLocalAddress銆丮ulticastAddress绫诲瀷鐨処P鍦板潃
-                if(!inetAddr.isLoopbackAddress() /*&& !inetAddr.isSiteLocalAddress()*/
-                        && !inetAddr.isLinkLocalAddress() && !inetAddr.isMulticastAddress()){
+                if (!inetAddr.isLoopbackAddress() /*&& !inetAddr.isSiteLocalAddress()*/
+                        && !inetAddr.isLinkLocalAddress() && !inetAddr.isMulticastAddress()) {
                     result.add(inetAddr);
                 }
             }
@@ -81,21 +81,21 @@
     /**
      * 鑾峰彇鏌愪釜缃戠粶鎺ュ彛鐨凪ac鍦板潃
      */
-    protected String getMacByInetAddress(InetAddress inetAddr){
+    protected String getMacByInetAddress(InetAddress inetAddr) {
         try {
             byte[] mac = NetworkInterface.getByInetAddress(inetAddr).getHardwareAddress();
             StringBuffer stringBuffer = new StringBuffer();
 
-            for(int i=0;i<mac.length;i++){
-                if(i != 0) {
+            for (int i = 0; i < mac.length; i++) {
+                if (i != 0) {
                     stringBuffer.append("-");
                 }
 
                 //灏嗗崄鍏繘鍒禸yte杞寲涓哄瓧绗︿覆
                 String temp = Integer.toHexString(mac[i] & 0xff);
-                if(temp.length() == 1){
+                if (temp.length() == 1) {
                     stringBuffer.append("0" + temp);
-                }else{
+                } else {
                     stringBuffer.append(temp);
                 }
             }

--
Gitblit v1.9.1