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:53:25 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f4beb6e421839786b1dcbf4728de83ba58b70a10
f4beb6e4
1 parent
253d8c80
1.修复一些bug
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
app/Jobs/AdminMakeImmerse.php
app/Jobs/UserMakeImmerse.php
app/Jobs/AdminMakeImmerse.php
View file @
f4beb6e
...
...
@@ -312,11 +312,11 @@ class AdminMakeImmerse implements ShouldQueue
'", '
;
}
elseif
(
$content
[
'tag'
]
==
'source'
){
$arr
=
explode
(
"
\n
"
,
$content
[
'text'
]);
$
titl
e
=
$arr
[
0
]
??
" "
;
$
author
=
$arr
[
1
]
??
" "
;
$
vers
e
=
$arr
[
0
]
??
" "
;
$
source
=
$arr
[
1
]
??
" "
;
//诗句
$text_file
=
$this
->
getAbsolutePath
(
$this
->
getTempPath
(
'.txt'
,
'text'
));
file_put_contents
(
$text_file
,
$
titl
e
);
file_put_contents
(
$text_file
,
$
vers
e
);
$sub_text
.=
'drawtext="'
.
'fontfile='
.
escapeshellarg
(
$font_file
)
.
':'
.
'textfile='
.
escapeshellarg
(
$text_file
)
.
':'
.
...
...
@@ -327,7 +327,7 @@ class AdminMakeImmerse implements ShouldQueue
'", '
;
// 出处
$text_file
=
$this
->
getAbsolutePath
(
$this
->
getTempPath
(
'.txt'
,
'text'
));
file_put_contents
(
$text_file
,
$
author
);
file_put_contents
(
$text_file
,
$
source
);
$sub_text
.=
'drawtext="'
.
'fontfile='
.
escapeshellarg
(
$font_file
)
.
':'
.
'textfile='
.
escapeshellarg
(
$text_file
)
.
':'
.
...
...
@@ -338,7 +338,7 @@ class AdminMakeImmerse implements ShouldQueue
'", '
;
}
else
{
$text_file
=
$this
->
getAbsolutePath
(
$this
->
getTempPath
(
'.txt'
,
'text'
));
file_put_contents
(
$text_file
,
$content
);
file_put_contents
(
$text_file
,
$content
[
'text'
]
);
$sub_text
.=
'drawtext="'
.
'fontfile='
.
escapeshellarg
(
$font_file
)
.
':'
.
'textfile='
.
escapeshellarg
(
$text_file
)
.
':'
.
...
...
app/Jobs/UserMakeImmerse.php
View file @
f4beb6e
...
...
@@ -607,11 +607,11 @@ class UserMakeImmerse implements ShouldQueue
'", '
;
}
elseif
(
$content
[
'tag'
]
==
'source'
){
$arr
=
explode
(
"
\n
"
,
$content
[
'text'
]);
$
titl
e
=
$arr
[
0
]
??
" "
;
$
author
=
$arr
[
1
]
??
" "
;
$
vers
e
=
$arr
[
0
]
??
" "
;
$
source
=
$arr
[
1
]
??
" "
;
//诗句
$text_file
=
Storage
::
disk
(
'public'
)
->
path
(
$this
->
getTempPath
(
'.txt'
,
'text'
));
file_put_contents
(
$text_file
,
$
titl
e
);
file_put_contents
(
$text_file
,
$
vers
e
);
$sub_text
.=
'drawtext="'
.
'fontfile='
.
escapeshellarg
(
$font_file
)
.
':'
.
'textfile='
.
escapeshellarg
(
$text_file
)
.
':'
.
...
...
@@ -622,7 +622,7 @@ class UserMakeImmerse implements ShouldQueue
'", '
;
// 出处
$text_file
=
Storage
::
disk
(
'public'
)
->
path
(
$this
->
getTempPath
(
'.txt'
,
'text'
));
file_put_contents
(
$text_file
,
$
author
);
file_put_contents
(
$text_file
,
$
source
);
$sub_text
.=
'drawtext="'
.
'fontfile='
.
escapeshellarg
(
$font_file
)
.
':'
.
'textfile='
.
escapeshellarg
(
$text_file
)
.
':'
.
...
...
@@ -633,7 +633,7 @@ class UserMakeImmerse implements ShouldQueue
'", '
;
}
else
{
$text_file
=
Storage
::
disk
(
'public'
)
->
path
(
$this
->
getTempPath
(
'.txt'
,
'text'
));
file_put_contents
(
$text_file
,
$content
);
file_put_contents
(
$text_file
,
$content
[
'text'
]
);
$sub_text
.=
'drawtext="'
.
'fontfile='
.
escapeshellarg
(
$font_file
)
.
':'
.
'textfile='
.
escapeshellarg
(
$text_file
)
.
':'
.
...
...
Please
register
or
login
to post a comment