问题优化

This commit is contained in:
2025-07-10 12:57:06 +08:00
parent d37fb949e1
commit 8ce403eff2

View File

@ -104,7 +104,7 @@ public class HomePageServiceImpl implements IHomePageService
int todayMonth = calendar.get(Calendar.MONTH) + 1;
int todayDay = calendar.get(Calendar.DAY_OF_MONTH);
if (StringUtils.isNotEmpty(pcsDate)){
String[] pcsDateArray = pcsDate.split("/");
String[] pcsDateArray = pcsDate.split("-");
if (todayMonth == Integer.parseInt(pcsDateArray[0]) &&
todayDay == Integer.parseInt(pcsDateArray[1])) {
flag = true;