李帅

1. 众妙接口新增一言内容

......@@ -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;
......