perf: 优化视频压缩

This commit is contained in:
kuaifan
2025-04-18 22:28:24 +08:00
parent 00a8514245
commit bdabfdcb3d
4 changed files with 47 additions and 2 deletions

View File

@@ -879,13 +879,15 @@ class WebSocketDialog extends AbstractModel
Base::makeDir(public_path($path));
copy($filePath, public_path($path) . basename($filePath));
} else {
$setting = Base::setting("system");
$data = Base::upload([
"file" => $files,
"type" => 'more',
"path" => $path,
"fileName" => $fileName,
"quality" => true,
"convertVideo" => true
"convertVideo" => $setting['convert_video'] === 'open',
"compressVideo" => $setting['compress_video'] === 'open',
]);
}
//