Toggle navigation
Toggle navigation
This project
Loading...
Sign in
OnePoem
/
OnePoem-Server
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
李帅
2023-05-18 21:32:14 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7f50f8747a3821fd3c6985628062ea77e265c56e
7f50f874
1 parent
627d9058
1.修复一些bug
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
app/Jobs/AdminMakeImmerse.php
app/Jobs/AdminMakeImmerse.php
View file @
7f50f87
...
...
@@ -238,7 +238,6 @@ class AdminMakeImmerse implements ShouldQueue
];
}
}
// if ($item->content != '') $contents[] = $this->autoEnter($item->content, $font_size, $this->output_width) . "\n" . $this->autoCenter($source, $font_size, $this->output_width);
if
(
$item
->
annotate
){
$contents
[]
=
[
"text"
=>
$this
->
autoEnter
(
$item
->
annotate
,
$font_size
,
$this
->
output_width
),
...
...
@@ -283,6 +282,7 @@ class AdminMakeImmerse implements ShouldQueue
$round
=
round
(
$this
->
media_info
[
'format'
][
'duration'
]
/
count
(
$contents
),
1
);
if
(
$round
<
1
)
$round
=
1
;
$sub_text
=
''
;
print_r
(
$contents
);
foreach
(
$contents
as
$key
=>
$content
){
$DS
=
$key
*
$round
;
$DE
=
$DS
+
$round
;
...
...
@@ -403,7 +403,7 @@ class AdminMakeImmerse implements ShouldQueue
{
$video_width
=
$video_width
-
2
*
$font_width
;
// 两侧留出空隙
$row_count
=
floor
(
$video_width
/
$font_width
);
echo
$
row_count
;
echo
$
string
.
"#"
.
$row_count
.
PHP_EOL
;
$str_len
=
mb_strlen
(
$string
);
if
(
$str_len
>
$row_count
)
{
$tmp
=
array_chunk
(
...
...
Please
register
or
login
to post a comment