this is 4.2 update

This commit is contained in:
chen-xin-zhi 2025-04-16 16:01:52 +08:00
parent f5bf0bcdad
commit f33eda13e4
3 changed files with 3 additions and 3 deletions

View File

@ -150,7 +150,7 @@ public class FileController {
// // 设置response的Header
response.setContentType("application/octet-stream");
response.addHeader("Content-Disposition", "inline;filename=" + URLEncoder.encode(file.getName(), StandardCharsets.UTF_8));
response.addHeader("Content-Disposition", "attachment;filename=" + URLEncoder.encode(file.getName(), StandardCharsets.UTF_8));
response.setContentLengthLong(file.length()); // 使用 setContentLengthLong 适应大文件
// 设置缓存相关的 HTTP

View File

@ -187,7 +187,7 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements Us
user.setMiniOpenId(openid);
user.setUserName("泠珑" + RandomUtil.randomString(8));
user.setUserRole("user");
user.setPoints(10000);
user.setPoints(0);
user.setUserAvatar(UserConstant.USER_DEFAULT_AVATAR);
this.save(user);
// 记住用户的登录态

View File

@ -1,6 +1,6 @@
spring:
profiles:
active: dev
active: prod