this is 4.2 update
This commit is contained in:
parent
f5bf0bcdad
commit
f33eda13e4
|
@ -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 头
|
||||
|
|
|
@ -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);
|
||||
// 记住用户的登录态
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
spring:
|
||||
profiles:
|
||||
active: dev
|
||||
active: prod
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user