|
@@ -35,7 +35,6 @@ public class AuthLicenseController {
|
|
public ResultData getAuthInfo(){
|
|
public ResultData getAuthInfo(){
|
|
JSONObject jsonObject = null;
|
|
JSONObject jsonObject = null;
|
|
try {
|
|
try {
|
|
- System.out.println(1/0);
|
|
|
|
jsonObject = AuthLicenseUtil.readLicense();
|
|
jsonObject = AuthLicenseUtil.readLicense();
|
|
JSONObject licenseInfo = jsonObject.getJSONObject("licenseInfo");
|
|
JSONObject licenseInfo = jsonObject.getJSONObject("licenseInfo");
|
|
JSONObject snInfo = licenseInfo.getJSONObject("snInfo");
|
|
JSONObject snInfo = licenseInfo.getJSONObject("snInfo");
|
|
@@ -52,6 +51,10 @@ public class AuthLicenseController {
|
|
snInfo.set("sn", snPassWord);
|
|
snInfo.set("sn", snPassWord);
|
|
}
|
|
}
|
|
}catch (Exception e){
|
|
}catch (Exception e){
|
|
|
|
+ jsonObject = new JSONObject();
|
|
|
|
+ JSONObject licenseInfo = new JSONObject();
|
|
|
|
+ licenseInfo.set("snInfo",new JSONObject());
|
|
|
|
+ jsonObject.set("licenseInfo",licenseInfo);
|
|
}
|
|
}
|
|
return ResultData.ok(jsonObject);
|
|
return ResultData.ok(jsonObject);
|
|
}
|
|
}
|