李帅

1.修复一些bug

......@@ -206,6 +206,21 @@ class AdminMakeImmerse implements ShouldQueue
$components = $this->adminMakeVideo->temp->components;
$drawtext = '';
// 底部加入文字水印
$text_file = $this->getAbsolutePath($this->getTempPath('.txt','text'));
file_put_contents($text_file, 'Parlando.ink');
$font_file = $this->getAbsolutePath("files/d7300fd8be7ff27fb0a11d1afe717374.otf");
$font_size = $this->calcFontSize(22);
$drawtext .= 'drawtext="'.
'fontfile=' . escapeshellarg($font_file) . ':' .
'textfile=' . escapeshellarg($text_file) . ':' .
'fontsize=' . $font_size . ':' .
'fontcolor=white@0.8:' .
'x=' . escapeshellarg('w-text_w') . ':' .
'y=' . escapeshellarg('h-text_h-1') . ':' .
'", ';
foreach ($components as $component) {
$text_color = $component->text_color ?? 'white';
$text_bg_color = $component->text_bg_color ?? '0xd0cdcc';
......