lyhzzz 2 年之前
父節點
當前提交
0341e707b5
共有 1 個文件被更改,包括 0 次插入34 次删除
  1. 0 34
      src/main/java/com/fdkankan/ucenter/controller/LicenseController.java

+ 0 - 34
src/main/java/com/fdkankan/ucenter/controller/LicenseController.java

@@ -7,39 +7,5 @@ import org.springframework.web.bind.annotation.RestController;
 @RequestMapping("/ucenter/license")
 public class LicenseController {
 
-    public static Node License() throws IOException, InterruptedException {
-        String authLicenseCommandCmd = "";
-        String licensePath = CmdBuildUtil.fdkkLaserConfig.buildCallPath + File.separator + "license" + File.separator;
-        File caches = new File(licensePath + "caches");
-        FileUtil.del(caches);
-        File results = new File(licensePath + "results");
-        FileUtil.del(results);
 
-        JSONObject licenseDataJson = new JSONObject();
-        licenseDataJson.put("split_type", "SPLIT_V23");
-        licenseDataJson.put("skybox_type", "SKYBOX_V5");
-        FileUtils.writeFile(licensePath + File.separator + "data.json", licenseDataJson.toString());
-        if (CmdBuildUtil.OS.isLinux()) {
-            authLicenseCommandCmd = CmdConstant.AUTH_LICENSE_WIN;
-            CmdUtils.callLineSh(authLicenseCommandCmd);
-        } else {
-            authLicenseCommandCmd = CmdConstant.AUTH_LICENSE_WIN
-                    .replace("@inPath", licensePath);
-            CmdUtils.callLine(authLicenseCommandCmd);
-        }
-        int count = 10;
-        try {
-            for (int i = count; i > 0; i--) {
-                if (FileUtil.exist(licensePath + File.separator + "results" + File.separator + "encryption_info.xml")) {
-                    Document document = XmlUtil.readXML(licensePath + File.separator + "results" + File.separator + "encryption_info.xml");
-                    return XmlUtil.getNodeByXPath("//licenseInfo//snInfo", document);
-                }
-                Thread.sleep(1000);
-            }
-        } catch (Exception e) {
-            e.printStackTrace();
-            return null;
-        }
-        return null;
-    }
 }