mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-09 02:46:50 +08:00
用户增加添加时默认显示个人主页
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user