最新代码
This commit is contained in:
@@ -3,7 +3,7 @@ package com.starry.admin.common.oss.service.impl;
|
||||
|
||||
import cn.hutool.core.date.DateTime;
|
||||
import cn.hutool.core.io.FileTypeUtil;
|
||||
import cn.hutool.core.util.IdUtil;
|
||||
import com.starry.common.utils.IdUtils;
|
||||
import com.aliyun.oss.ClientException;
|
||||
import com.aliyun.oss.OSS;
|
||||
import com.aliyun.oss.OSSClientBuilder;
|
||||
@@ -58,7 +58,7 @@ public class OssFileServiceImpl implements IOssFileService {
|
||||
// 文件名:uuid.扩展名
|
||||
|
||||
|
||||
filename = IdUtil.fastSimpleUUID() + "." + fileType;
|
||||
filename = IdUtils.getUuid() + "." + fileType;
|
||||
// 文件根路径
|
||||
String key = module + "/" + folder + "/" + filename;
|
||||
// 创建PutObjectRequest对象。
|
||||
|
||||
Reference in New Issue
Block a user