处理后台新需求
Build Backend JAR / build (push) Failing after 16m58s

This commit is contained in:
supernijia
2026-08-09 20:08:39 +08:00
parent f7e26ee266
commit 38216a1885
42 changed files with 3425 additions and 424 deletions
@@ -147,6 +147,18 @@ public class OssStorageService {
}
}
/**
* Reads a managed result object from either its object key or stored public URL.
* This overload keeps callers from depending on the configured bucket name.
*/
public byte[] readObjectBytes(String value) {
StorageLocation location = resolveStorageLocation(value);
if (location == null) {
throw new IllegalArgumentException("object value must not be blank");
}
return readObjectBytes(location.bucket(), location.objectKey());
}
public boolean objectExists(String bucket, String objectKey) {
String normalizedBucket = requireStorageName(bucket, "bucket");
String normalizedObjectKey = requireStorageName(objectKey, "objectKey");