Browse Source

Merge pull request #41 in TC/finekit from ~FANGLEI/finekit:master to master

* commit '63bf89f824a135097d9938b1f60e7ff7bf348846':
  KERNEL-4017 H5插件去掉FMobileLicUtils的依赖
pull/1/head
superman 4 years ago
parent
commit
f5268bd1eb
  1. 11
      src/main/java/com/fanruan/api/util/LicKit.java

11
src/main/java/com/fanruan/api/util/LicKit.java

@ -5,14 +5,25 @@ import com.fr.license.exception.RegistEditionException;
import com.fr.regist.FRCoreContext;
import com.fr.regist.FunctionPoint;
/**
* 获取Lic相关信息的类
*/
public class LicKit {
public LicKit() {
}
/**
* 获取Lic的JSON信息
* @return JSONObject
*/
public static JSONObject getJsonFromLic() {
return FRCoreContext.getLicense().getJSONObject();
}
/**
* 检查某个功能点的lic权限如果没有权限就跳转到没有lic权限的报错页面
* @param point 功能点
*/
public static void checkFunctionPointSupport(FunctionPoint point) {
if (!point.isSupport()) {
throw new RegistEditionException(point);

Loading…
Cancel
Save