Commit 530b054f by zhangxingmin

push

parent c4f2b8e5
package com.yd.oss.service.service.impl; package com.yd.oss.service.service.impl;
import com.alibaba.fastjson2.JSON;
import com.aliyun.oss.OSS; import com.aliyun.oss.OSS;
import com.aliyun.oss.model.CannedAccessControlList; import com.aliyun.oss.model.CannedAccessControlList;
import com.aliyun.oss.model.OSSObject; import com.aliyun.oss.model.OSSObject;
...@@ -208,7 +209,12 @@ public class AliYunOssServiceImpl implements OssService { ...@@ -208,7 +209,12 @@ public class AliYunOssServiceImpl implements OssService {
ossFile.setTenantBizId(tenantBizId); ossFile.setTenantBizId(tenantBizId);
ossFile.setProjectBizId(projectBizId); ossFile.setProjectBizId(projectBizId);
// 获取当前登录用户信息(如果存在) // 获取当前登录用户信息(如果存在)
AuthUserDto authUserDto = SecurityUtil.getCurrentLoginUser(); AuthUserDto authUserDto = null;
try {
authUserDto = SecurityUtil.getCurrentLoginUser();
}catch (Exception e){
log.info("获取当前登录用户信息失败:{}", e.getMessage());
}
if (authUserDto != null) { if (authUserDto != null) {
ossFile.setCreatorId(authUserDto.getUserBizId()); ossFile.setCreatorId(authUserDto.getUserBizId());
ossFile.setCreatorName(authUserDto.getRealName()); ossFile.setCreatorName(authUserDto.getRealName());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment