🐛 文件上传记录获取用户 ID 问题修复

This commit is contained in:
ronger 2022-01-14 12:14:56 +08:00
parent 591b7bf1e6
commit d9bbc49b37

View File

@ -213,7 +213,7 @@ public class UploadController {
}
private TokenUser getTokenUser(HttpServletRequest request) throws BaseApiException {
String authHeader = request.getHeader(JwtConstants.AUTHORIZATION);
String authHeader = request.getHeader(JwtConstants.UPLOAD_TOKEN);
if (StringUtils.isBlank(authHeader)) {
throw new BaseApiException(ErrorCode.UNAUTHORIZED);
}