| | |
| | | <!-- <artifactId>framework</artifactId>--> |
| | | <!-- <version>${cool.version}</version>--> |
| | | <!-- </dependency>--> |
| | | <!-- 使用本地 JAR 解决缺失的 cn.cool:framework:jar:3.2.0 --> |
| | | <dependency> |
| | | <groupId>cn.cool</groupId> |
| | | <artifactId>framework</artifactId> |
| | | <version>3.2.0</version> |
| | | <scope>system</scope> |
| | | <systemPath>${project.basedir}/version/lib/framework-3.2.0.jar</systemPath> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>org.apache.tika</groupId> |
| | | <artifactId>tika-core</artifactId> |
| | |
| | | resourceWrapper = new EntityWrapper<Resource>().eq("level", 2).eq("status", 1).orderBy("sort"); |
| | | } else { |
| | | // 激活码验证 |
| | | if (!SystemProperties.SYSTEM_ACTIVATION) { |
| | | return R.ok(); |
| | | } |
| | | if (!SystemProperties.SYSTEM_ACTIVATION) { |
| | | return R.ok(); |
| | | } |
| | | oneLevel = resourceService.selectList(new EntityWrapper<Resource>().eq("level", 1).eq("status", 1).orderBy("sort")); |
| | | // 获取当前用户的所有二级菜单 |
| | | user = userService.selectById(getUserId()); |
| | |
| | | @Component |
| | | public class LicenseTimer { |
| | | |
| | | private static boolean SYSTEM_SUPPORT = false;//系统激活状态,默认关闭 |
| | | private static boolean SYSTEM_SUPPORT = true;//系统激活状态,默认关闭 |
| | | |
| | | private static int LICENSE_DAYS = 0;//许可证天数 |
| | | |