|
|
@@ -309,7 +309,11 @@ public class OssClient {
|
|
|
}
|
|
|
|
|
|
public String getSignedUrl(String objectId, String action, String objectUrl) throws Exception {
|
|
|
- String queryString = String.format("objectId=%s&action=%s&objectUrl=%s", objectId, action, objectUrl);
|
|
|
+ String queryString = String.format("objectId=%s&action=%s&objectUrl=", objectId, action);
|
|
|
+ if (objectUrl != null) {
|
|
|
+ queryString = String.format("objectId=%s&action=%s&objectUrl=%s", objectId, action, objectUrl);
|
|
|
+ }
|
|
|
+
|
|
|
String api = "/api/oss/sdk/presign";
|
|
|
String url = String.format("%s%s?%s", endpoint, api, queryString);
|
|
|
|