BUGFIX: 所有通过邮件注册、登录等的查询,不再区分大小写

This commit is contained in:
2025-09-17 17:46:42 +08:00
parent 950707ab44
commit c43a716104
5 changed files with 10 additions and 11 deletions

View File

@@ -265,7 +265,7 @@ public class MyTaskScheduler {
} catch (IOException e) {
e.printStackTrace();
}
}else {
}else if (env) {
// SendEmailUtil.sendNoExcelEmail("1023316923@qq.com", null);
SendEmailUtil.sendNoExcelEmail("calvinwong@aidlab.hk", null);
SendEmailUtil.sendNoExcelEmail("kaicpang.pang@connect.polyu.hk", null);

View File

@@ -49,7 +49,6 @@ public class BusinessException extends RuntimeException {
private static Locale getUserLocale() {
AuthPrincipalVo userInfo = UserContext.getUserHolder();
log.info("userinfo: {}", userInfo);
if (Objects.isNull(userInfo)) {
return new Locale("en");
}

View File

@@ -24,9 +24,8 @@ public class AccountTask {
* 替换为
* 每个月月初只刷新教育子账号的积分
*/
// @Scheduled(cron = "59 59 23 * * ?")
@Scheduled(cron = "0 15 16 * * ?")
// @Scheduled(cron = "0 0 0 1 * ?")
// @Scheduled(cron = "0 0 16 * * ?")
@Scheduled(cron = "0 0 0 1 * ?")
public void refreshCreditsMonthly() {
log.info("每月1号0点 重置教育版子账号为默认积分");
accountService.refreshCreditsMonthly();