| | |
| | | public static final String SALT = "123456789qwertyu"; |
| | | |
| | | // 系统激活状态 (默认未激活) |
| | | public static boolean SYSTEM_ACTIVATION = Boolean.FALSE; |
| | | public static boolean SYSTEM_ACTIVATION = Boolean.TRUE; |
| | | |
| | | public static String getActivationCode(String fileName){ |
| | | StringBuilder activationCode = new StringBuilder(); |
| | |
| | | public class ActivateScheduler { |
| | | |
| | | // @Scheduled(cron = "0/1 * 8 * * ? ") // 每天8点 |
| | | //@Scheduled(cron = "* 0/1 * * * ? ") // 每分钟 |
| | | //@PostConstruct |
| | | @Scheduled(cron = "* 0/1 * * * ? ") // 每分钟 |
| | | @PostConstruct |
| | | private void execute(){ |
| | | // 获取激活码 |
| | | String activationCode = SystemProperties.getActivationCode(OSinfo.getOSname().getActivationCodePath()); |