修改部分项目配置: 主页背景, 注册默认头像

This commit is contained in:
2023-03-10 21:01:27 +08:00
parent 18df512a70
commit 8fd376084e
4 changed files with 3 additions and 3 deletions
@@ -74,7 +74,7 @@ public class RegisterServiceImpl implements RegisterService {
// 对密码进行加密
String encodedPassword = new BCryptPasswordEncoder().encode(password);
// 默认头像
String photo = "https://typoraflykhan.oss-cn-beijing.aliyuncs.com/202302251824054.png";
String photo = "https://typoraflykhan.oss-cn-beijing.aliyuncs.com/202303102059268.png";
// id 是数据库自增,这里生成新用户只需要将 id 参数写为 null 即可
User user = new User(null, username, encodedPassword, photo, 1500);
userMapper.insert(user);