aijinhui
2023-11-22 97e4f5c460d37ae3eb9c03396dd9dd6bb3f970cd
ruoyi-system/src/main/java/com/ruoyi/authorize/common/AuthorizeUtil.java
@@ -19,7 +19,7 @@
import javax.crypto.spec.SecretKeySpec;
import javax.xml.bind.DatatypeConverter;
@Slf4j(topic="Authorize")
@Slf4j(topic="authorize")
public class AuthorizeUtil {
    public static String MachineCode="";
@@ -36,9 +36,9 @@
    public static void main(String[] args) {
        AuthorizeUtil ss = new AuthorizeUtil();
        System.out.println("sysStr " + ss.parsLicense());
        System.out.println("MachineCode " + ss.getMachineCode());
        System.out.println("CPUCode     " + ss.getCPUCode());
        log.debug("sysStr " + ss.parsLicense());
        log.debug("MachineCode " + ss.getMachineCode());
        log.debug("CPUCode     " + ss.getCPUCode());
        //String codeString=ss.parsLicense("b1db709f19d9769e536e2e29888e38b2");
        //System.out.println(codeString);
        //ss.makeTempLicense();
@@ -103,7 +103,9 @@
        } catch (Exception e) {
            log.error("获取机器码异常:"+e.getMessage());
        }
        return Md5Utils.hash(sb.toString().toUpperCase());
        String code = Md5Utils.hash(sb.toString().toUpperCase());
        log.debug("机器码:"+code);
        return code;
    }
    public static String getCPUCode() {