Commit d140f353 authored by 郑杰's avatar 郑杰
Browse files

修复站点统计为空指针的问题

parent 27b92496
...@@ -42,6 +42,7 @@ public class VisitsServiceImpl implements VisitsService { ...@@ -42,6 +42,7 @@ public class VisitsServiceImpl implements VisitsService {
visits.setPvCounts(1L); visits.setPvCounts(1L);
visits.setIpCounts(1L); visits.setIpCounts(1L);
visits.setDate(localDate.toString()); visits.setDate(localDate.toString());
visitsRepository.save(visits);
} }
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment