feat(edit): AI套图生成、图片切七牛

This commit is contained in:
2026-10-04 20:47:47 +08:00
parent 696112e74d
commit e20cd7547f
60 changed files with 6241 additions and 312 deletions
+3 -1
View File
@@ -47,10 +47,11 @@ describe('网络商品图片导入', () => {
],
};
}
if (sql.includes('SELECT bucket, object_key')) {
if (sql.includes('SELECT storage_provider, bucket, object_key')) {
return {
rows: [
{
storage_provider: 'local_minio',
bucket: 'test',
object_key: 'product-imports/existing.png',
},
@@ -74,6 +75,7 @@ describe('网络商品图片导入', () => {
{} as ConstructorParameters<typeof MediaService>[1],
{
OBJECT_STORAGE_ENDPOINT: 'http://127.0.0.1:9000',
OBJECT_STORAGE_REGION: 'us-east-1',
OBJECT_STORAGE_BUCKET: 'test',
objectStorageForcePathStyle: true,
objectStorageAccessKey: 'test',