🐛 文件上传记录获取用户 ID 问题修复
This commit is contained in:
parent
591b7bf1e6
commit
d9bbc49b37
@ -213,7 +213,7 @@ public class UploadController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private TokenUser getTokenUser(HttpServletRequest request) throws BaseApiException {
|
private TokenUser getTokenUser(HttpServletRequest request) throws BaseApiException {
|
||||||
String authHeader = request.getHeader(JwtConstants.AUTHORIZATION);
|
String authHeader = request.getHeader(JwtConstants.UPLOAD_TOKEN);
|
||||||
if (StringUtils.isBlank(authHeader)) {
|
if (StringUtils.isBlank(authHeader)) {
|
||||||
throw new BaseApiException(ErrorCode.UNAUTHORIZED);
|
throw new BaseApiException(ErrorCode.UNAUTHORIZED);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user