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-04-24 11:55:15 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
dbea9b633798bdabcd0bb44d608cb4a28f4ef127
dbea9b63
1 parent
dde7ad3b
1. 众妙接口新增一言内容
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
app/Models/Immerse.php
app/Models/Immerse.php
View file @
dbea9b6
...
...
@@ -26,7 +26,7 @@ class Immerse extends Model
$str
=
Str
::
of
(
$url
)
->
replace
(
'/usr/local/nginx/html/OnePoem/storage/app/public/'
,
''
);
return
Storage
::
disk
(
'public'
)
->
url
(
$str
);
}
else
{
return
$url
;
return
Storage
::
disk
(
'public'
)
->
url
(
$url
)
;
}
}
...
...
@@ -36,7 +36,17 @@ class Immerse extends Model
$str
=
Str
::
of
(
$url
)
->
replace
(
'/usr/local/nginx/html/OnePoem/storage/app/public/'
,
''
);
return
Storage
::
disk
(
'public'
)
->
url
(
$str
);
}
else
{
return
$url
;
return
Storage
::
disk
(
'public'
)
->
url
(
$url
);
}
}
public
function
getBgmAttribute
(
$url
)
{
if
(
Str
::
contains
(
$url
,
'/storage/app/public/'
))
{
$str
=
Str
::
of
(
$url
)
->
replace
(
'/usr/local/nginx/html/OnePoem/storage/app/public/'
,
''
);
return
Storage
::
disk
(
'public'
)
->
url
(
$str
);
}
else
{
return
Storage
::
disk
(
'public'
)
->
url
(
$url
);
}
}
}
...
...
Please
register
or
login
to post a comment