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