Browse Source

KERNEL-4017 H5插件去掉FMobileLicUtils的依赖

pull/1/head
方磊 4 years ago
parent
commit
63bf89f824
  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.FRCoreContext;
import com.fr.regist.FunctionPoint; import com.fr.regist.FunctionPoint;
/**
* 获取Lic相关信息的类
*/
public class LicKit { public class LicKit {
public LicKit() { public LicKit() {
} }
/**
* 获取Lic的JSON信息
* @return JSONObject
*/
public static JSONObject getJsonFromLic() { public static JSONObject getJsonFromLic() {
return FRCoreContext.getLicense().getJSONObject(); return FRCoreContext.getLicense().getJSONObject();
} }
/**
* 检查某个功能点的lic权限如果没有权限就跳转到没有lic权限的报错页面
* @param point 功能点
*/
public static void checkFunctionPointSupport(FunctionPoint point) { public static void checkFunctionPointSupport(FunctionPoint point) {
if (!point.isSupport()) { if (!point.isSupport()) {
throw new RegistEditionException(point); throw new RegistEditionException(point);

Loading…
Cancel
Save