用户增加添加时默认显示个人主页

This commit is contained in:
daihh
2022-11-14 18:18:05 +08:00
parent 000602d8f1
commit 881bbcb5f7

View File

@@ -105,6 +105,9 @@ public class UserServiceImpl implements IUserService {
if (user.getStudyTotal() == null) { if (user.getStudyTotal() == null) {
user.setStudyTotal(0);//新用户学习时长为0 user.setStudyTotal(0);//新用户学习时长为0
} }
if(user.getShowHome()==null) {
user.setShowHome(true);
}
dao.save(user); dao.save(user);
} }