改进上传服务

This commit is contained in:
WispX
2021-12-17 15:57:01 +08:00
parent 7505616e3f
commit bbdad3f911
-4
View File
@@ -79,10 +79,6 @@ class Image extends Model
return Storage::disk('uploads')->url($this->pathname);
}
$domain = Str::replaceFirst('/', '', $this->strategy->configs->get('domain'));
if (StrategyKey::Local()->is($this->strategy->key)) {
// 本地储存前缀必须是 uploads
$domain .= '/uploads';
}
return $domain.'/'.$this->pathname;
}