perf: export oss to conf

This commit is contained in:
daodao97
2020-10-11 14:53:42 +08:00
parent 41ecb97767
commit b39064aeba

View File

@@ -129,7 +129,8 @@ class ExportService
])->save();
$query['_page'] += 1;
}
$info = move_local_file_to_oss($file_path, '1/export_task/' . $file_name, true);
$bucket = config('storager.export_service', config('storager.default'));
$info = move_local_file_to_oss($file_path, '1/export_task/' . $file_name, true, $bucket);
if($info) {
$task->fill([
'status' => ExportTasks::STATUS_SUCCESS,