Skip to content

Commit 6220463

Browse files
committed
feat: cos 支持前端直传
1 parent 8f112db commit 6220463

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

FileStorage/app/Http/Controllers/FileStorageController.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ public function fileUpload()
3939

4040
$savePath = match ($usageType) {
4141
// tenant_no/merchant_images/商户名称/YYYY-MM-DD/timestampe-文件名
42-
'cover' => sprintf("{$tenantNo}/cover/{$day}/%s-%s", $time, $filename),
43-
'summary' => sprintf("{$tenantNo}/summary/{$day}/%s-%s", $time, $filename),
44-
'description' => sprintf("{$tenantNo}/description/{$day}/%s-%s", $time, $filename),
42+
'cover' => sprintf("{$tenantNo}/cover/%s-%s", $time, $filename),
43+
'summary' => sprintf("{$tenantNo}/summary/%s-%s", $time, $filename),
44+
'description' => sprintf("{$tenantNo}/description/%s-%s", $time, $filename),
4545
default => throw new \Exception('未知的使用类型:' . $usageType),
4646
};
4747

0 commit comments

Comments
 (0)