|
@@ -37,7 +37,10 @@ public class AuthLicenseController {
|
|
|
public ResultData getAuthInfo(){
|
|
|
JSONObject jsonObject = null;
|
|
|
try {
|
|
|
- jsonObject = AuthLicenseUtil.readLicense();
|
|
|
+ jsonObject = AuthLicenseUtil.createLicense();
|
|
|
+ if(jsonObject == null){
|
|
|
+ return ResultData.ok(null);
|
|
|
+ }
|
|
|
JSONObject licenseInfo = jsonObject.getJSONObject("licenseInfo");
|
|
|
JSONObject snInfo = licenseInfo.getJSONObject("snInfo");
|
|
|
String endDate = snInfo.getStr("endDate");
|