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