From 63bf89f824a135097d9938b1f60e7ff7bf348846 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=96=B9=E7=A3=8A?= <294531121@qq.com> Date: Thu, 27 Aug 2020 20:05:06 +0800 Subject: [PATCH] =?UTF-8?q?KERNEL-4017=20H5=E6=8F=92=E4=BB=B6=E5=8E=BB?= =?UTF-8?q?=E6=8E=89FMobileLicUtils=E7=9A=84=E4=BE=9D=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/fanruan/api/util/LicKit.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/main/java/com/fanruan/api/util/LicKit.java b/src/main/java/com/fanruan/api/util/LicKit.java index 434e8f9..720315f 100644 --- a/src/main/java/com/fanruan/api/util/LicKit.java +++ b/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);