wangEditor 文件上传问题
This commit is contained in:
parent
20727c2e09
commit
3cf18d5ca4
@ -161,6 +161,9 @@ public class MinIoFileServiceImpl extends DefaultBaseService implements IMinIoFi
|
||||
} else {
|
||||
saveFile(tokenOrUserId, fileId, fileName, fileType, fileSize, bucketName);
|
||||
}
|
||||
params.put("fileName", uploadFileName);
|
||||
params.put("fileUrl", bucketName);
|
||||
params.put("fileType", fileType);
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -364,7 +367,7 @@ public class MinIoFileServiceImpl extends DefaultBaseService implements IMinIoFi
|
||||
*/
|
||||
private void saveFile(String token, String fileId, String fileName, String fileType, long fileSize, String bucketName) {
|
||||
String userId;
|
||||
if(StringUtils.isBlank(token)) {
|
||||
if (StringUtils.isBlank(token)) {
|
||||
userId = securityComponent.getCurrentUser().getUserId();
|
||||
} else {
|
||||
userId = getAppTokenUser(token).getId();
|
||||
|
Loading…
Reference in New Issue
Block a user