forked from fanruan/finekit
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
533 B
22 lines
533 B
5 years ago
|
package com.fanruan.api.util;
|
||
|
|
||
|
import com.fr.json.JSONObject;
|
||
|
import com.fr.license.exception.RegistEditionException;
|
||
|
import com.fr.regist.FRCoreContext;
|
||
|
import com.fr.regist.FunctionPoint;
|
||
|
|
||
|
public class LicKit {
|
||
|
public LicKit() {
|
||
|
}
|
||
|
|
||
|
public static JSONObject getJsonFromLic() {
|
||
|
return FRCoreContext.getLicense().getJSONObject();
|
||
|
}
|
||
|
|
||
|
public static void checkFunctionPointSupport(FunctionPoint point) {
|
||
|
if (!point.isSupport()) {
|
||
|
throw new RegistEditionException(point);
|
||
|
}
|
||
|
}
|
||
|
}
|