提交 d140f353 编写于 作者: 郑杰

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

上级 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);
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册