|
|
@ -44,7 +44,7 @@ public class ResourceController extends Controller {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//生成一个guid+扩展名的key
|
|
|
|
//生成一个guid+扩展名的key
|
|
|
|
String objectName = java.util.UUID.randomUUID() + "." + extension;
|
|
|
|
String objectName = java.util.UUID.randomUUID() + "." + extension;
|
|
|
|
String signature = MinioUtils.getSignature(objectName);
|
|
|
|
String signature = MinioUtils.getSignature("resources/"+objectName);
|
|
|
|
Record record = new Record();
|
|
|
|
Record record = new Record();
|
|
|
|
record.set("object_name", objectName);
|
|
|
|
record.set("object_name", objectName);
|
|
|
|
record.set("signature", signature);
|
|
|
|
record.set("signature", signature);
|
|
|
|