开始腾讯提交;

This commit is contained in:
2022-07-11 18:39:21 +08:00
parent 1e2c75fbbe
commit bfcb4ad321
7 changed files with 84 additions and 3 deletions

View File

@@ -71,6 +71,7 @@ class Ajax extends AdminController
$result = $upload_service->save($data['file']);
} catch (\Exception $e) {
throw $e;
$this->error($e->getMessage());
}

View File

@@ -241,6 +241,9 @@ function build_upload_url($url)
case 'alioss':
$prefix_url = $config['alioss_domain'];
break;
// case 'alioss':
// $prefix_url = $config['alioss_domain'];
// break;
default:
# code...

View File

@@ -70,7 +70,7 @@ class UploadService
$save_name = Filesystem::disk($this->uploadType)->putFile('upload', $file, function () {
return date('Ymd') . DIRECTORY_SEPARATOR . uniqid();
return date('Ymd') . '/' . uniqid();
});
$url = build_upload_url($save_name);