6666
This commit is contained in:
parent
fcd5a0eb0d
commit
5532a40c06
@ -46,7 +46,7 @@ public class OSSFileController {
|
|||||||
public ResponseDTO<OSSPolicyVO> getOSSPolicy(@PathVariable int type){
|
public ResponseDTO<OSSPolicyVO> getOSSPolicy(@PathVariable int type){
|
||||||
OSSFileTypeEnum ossFileType = OSSFileTypeEnum.getByVal(type);
|
OSSFileTypeEnum ossFileType = OSSFileTypeEnum.getByVal(type);
|
||||||
Long requestUserId = SmartRequestUtil.getRequestUserId();
|
Long requestUserId = SmartRequestUtil.getRequestUserId();
|
||||||
String dir = "/" +ossFileType.getDesc() + File.separator;
|
String dir = "/" +ossFileType.getDesc() + File.separator + "images/";
|
||||||
// callbackUrl为 上传回调服务器的URL,请将下面的IP和Port配置为您自己的真实信息。
|
// callbackUrl为 上传回调服务器的URL,请将下面的IP和Port配置为您自己的真实信息。
|
||||||
OSSClient client = new OSSClient(endpoint, accessKey, secretKey);
|
OSSClient client = new OSSClient(endpoint, accessKey, secretKey);
|
||||||
try {
|
try {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user