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-17 23:50:30 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c17da486e52dcd8d30b8111fd5b58cb5d72755e8
c17da486
1 parent
5ac1641a
1.修复一些bug
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
app/Jobs/AdminMakeImmerse.php
app/Jobs/AdminMakeImmerse.php
View file @
c17da48
...
...
@@ -222,11 +222,11 @@ class AdminMakeImmerse implements ShouldQueue
$default
=
$this
->
adminMakeVideo
->
poem2
->
title
.
"
\n
"
.
$this
->
adminMakeVideo
->
poem2
->
author
;
$contents
[]
=
$this
->
autoCenter
(
$default
,
$font_size
,
$this
->
output_width
);
foreach
(
$this
->
adminMakeVideo
->
poem2
->
verses
as
$item
)
{
if
(
$item
->
content
!=
''
)
$contents
[]
=
$this
->
autoEnter
(
$item
->
content
,
$font_size
,
$this
->
output_width
);
$source
=
" "
.
"
\n
"
.
$item
->
source
;
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
[]
=
$this
->
autoEnter
(
$item
->
annotate
,
$font_size
,
$this
->
output_width
);
if
(
$item
->
spelling
!=
''
)
$contents
[]
=
$this
->
autoEnter
(
$item
->
spelling
,
$font_size
,
$this
->
output_width
);
if
(
$item
->
en
!=
''
)
$contents
[]
=
$this
->
autoEnter
(
$item
->
en
,
$font_size
,
$this
->
output_width
);
if
(
$item
->
source
!=
''
)
$contents
[]
=
$this
->
autoEnter
(
$item
->
source
,
$font_size
,
$this
->
output_width
);
}
break
;
case
'weather'
:
...
...
@@ -330,7 +330,7 @@ class AdminMakeImmerse implements ShouldQueue
$video_width
=
$video_width
-
2
*
$font_width
;
// 两侧留出空隙
$row_count
=
floor
(
$video_width
/
$font_width
);
$arr
=
explode
(
"
\n
"
,
$string
);
$title
=
$arr
[
0
];
$title
=
$arr
[
0
]
??
" "
;
$author
=
$arr
[
1
];
$title_len
=
mb_strlen
(
$title
);
...
...
Please
register
or
login
to post a comment