lyhzzz 2 лет назад
Родитель
Сommit
8801eb8a9d

+ 2 - 1
src/main/java/com/fdkankan/ucenter/common/utils/AuthLicenseUtil.java

@@ -29,10 +29,11 @@ public class AuthLicenseUtil {
 
      public static JSONObject readLicense(){
          try {
-             createLicense();
              if (FileUtil.exist(licensePath + File.separator + "results" + File.separator + "encryption_info.xml")) {
                  String xml = FileUtils.readFile((licensePath + File.separator + "results" + File.separator + "encryption_info.xml"));
                  return XML.toJSONObject(xml);
+             }else {
+                 createLicense();
              }
          }catch (Exception e){
             log.error("readLicense-error:",e);