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.
20 lines
520 B
20 lines
520 B
package com.fanruan.api.runtime; |
|
|
|
import com.fr.plugin.context.PluginContexts; |
|
|
|
/** |
|
* @author richie |
|
* @version 10.0 |
|
* Created by richie on 2019-08-30 |
|
* 插件相关的工具类 |
|
*/ |
|
public class PluginKit { |
|
|
|
/** |
|
* 当前插件是否可用(例如:插件授权文件过期时,该犯法会返回false) |
|
* @return 插件可用则返回true,不可用则返回false |
|
*/ |
|
public static boolean isCurrentPluginAvailable() { |
|
return PluginContexts.currentContext().isAvailable(); |
|
} |
|
}
|
|
|