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
李帅
2022-06-10 17:19:25 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
4a1a5f4e333cbc0f29fe91bea6835027b6adf158
4a1a5f4e
1 parent
8a98a0c7
1.优化脚本和readme
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
11 deletions
README.md
app/Jobs/UserMakeImmerse.php
README.md
View file @
4a1a5f4
...
...
@@ -5,12 +5,20 @@
-
git clone && cd OnePoem-Server
-
cp .env.example .env
-
vim .env 修改db链接
-
php artisan key:generate
-
composer install
-
php artisan key:generate
-
php artisan storage:link
-
php artisan admin:publish
-
php artisan admin:install
-
chmod -R 777 storage/logs
-
chmod -R 777 storage/framework
-
chmod -R 777 storage/app/public
## 禁用函数移除
-
symlink
-
pron_open
-
exec
## todo
...
...
app/Jobs/UserMakeImmerse.php
View file @
4a1a5f4
...
...
@@ -494,6 +494,7 @@ class UserMakeImmerse implements ShouldQueue
foreach
(
$components
as
$component
)
{
switch
(
$component
->
name
){
case
'every_poem'
:
case
'one_poem'
:
$content
=
$this
->
immerse
->
poem
->
content
;
$text_file
=
Storage
::
disk
(
'public'
)
->
path
(
$this
->
getTempPath
(
'.txt'
));
...
...
@@ -510,13 +511,10 @@ class UserMakeImmerse implements ShouldQueue
'fontcolor='
.
$text_color
.
'@1.0:'
.
'x='
.
escapeshellarg
(
VideoTemp
::
POSITION_FFMPEG
[
$component
->
position
][
0
])
.
':'
.
'y='
.
escapeshellarg
(
VideoTemp
::
POSITION_FFMPEG
[
$component
->
position
][
1
])
.
':'
.
// 'box=1:boxborderw='. $this->calcBorderSize($component->font_size) . ':' . //todo 10号机不支持此选项
'box=1:'
.
'box=1:boxborderw='
.
$this
->
calcBorderSize
(
$component
->
font_size
)
.
':'
.
'boxcolor='
.
$text_bg_color
.
'@'
.
$opacity
.
'", '
;
break
;
case
'every_poem'
:
break
;
case
'weather'
:
$content
=
'多云'
;
$text_color
=
$component
->
text_color
??
'white'
;
...
...
@@ -530,8 +528,7 @@ class UserMakeImmerse implements ShouldQueue
'fontcolor='
.
$text_color
.
'@1.0:'
.
'x='
.
escapeshellarg
(
VideoTemp
::
POSITION_FFMPEG
[
$component
->
position
][
0
])
.
':'
.
'y='
.
escapeshellarg
(
VideoTemp
::
POSITION_FFMPEG
[
$component
->
position
][
1
])
.
':'
.
// 'box=1:boxborderw='. $this->calcBorderSize($component->font_size) . ':' . //todo 10号机不支持此选项
'box=1:'
.
'box=1:boxborderw='
.
$this
->
calcBorderSize
(
$component
->
font_size
)
.
':'
.
'boxcolor='
.
$text_bg_color
.
'@'
.
$opacity
.
'", '
;
break
;
...
...
@@ -548,8 +545,7 @@ class UserMakeImmerse implements ShouldQueue
'fontcolor='
.
$text_color
.
'@1.0:'
.
'x='
.
escapeshellarg
(
VideoTemp
::
POSITION_FFMPEG
[
$component
->
position
][
0
])
.
':'
.
'y='
.
escapeshellarg
(
VideoTemp
::
POSITION_FFMPEG
[
$component
->
position
][
1
])
.
':'
.
// 'box=1:boxborderw='. $this->calcBorderSize($component->font_size) . ':' . //todo 10号机不支持此选项
'box=1:'
.
'box=1:boxborderw='
.
$this
->
calcBorderSize
(
$component
->
font_size
)
.
':'
.
'boxcolor='
.
$text_bg_color
.
'@'
.
$opacity
.
'", '
;
break
;
case
'feel'
:
...
...
@@ -565,8 +561,7 @@ class UserMakeImmerse implements ShouldQueue
'fontcolor='
.
$text_color
.
'@1.0:'
.
'x='
.
escapeshellarg
(
VideoTemp
::
POSITION_FFMPEG
[
$component
->
position
][
0
])
.
':'
.
'y='
.
escapeshellarg
(
VideoTemp
::
POSITION_FFMPEG
[
$component
->
position
][
1
])
.
':'
.
// 'box=1:boxborderw='. $this->calcBorderSize($component->font_size) . ':' . //todo 10号机不支持此选项
'box=1:'
.
'box=1:boxborderw='
.
$this
->
calcBorderSize
(
$component
->
font_size
)
.
':'
.
'boxcolor='
.
$text_bg_color
.
'@'
.
$opacity
.
'", '
;
break
;
}
...
...
Please
register
or
login
to post a comment