Browse Source

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

* commit 'fa0421f466194742477bb2548a404419c4bafe37':
  KERNEL-4017 H5插件去掉FMobileLicUtils的依赖
remotes/1611766341912730171/master
superman 4 years ago
parent
commit
a6a113c0f0
  1. 21
      src/main/java/com/fanruan/api/util/LicKit.java

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

@ -0,0 +1,21 @@
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);
}
}
}
Loading…
Cancel
Save