-
Notifications
You must be signed in to change notification settings - Fork 161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ErrorException In AliOssAdapter.php line 570 #65
Comments
我也遇到这个问题了; |
同,请问解决了吗? |
注释掉 570行代码,不检查文件是否存在 |
检查路径是否有问题,比如多个“/” |
这个建议作者去掉 has($path) 的判断。 |
同问,这个有更新解决吗? |
1 similar comment
同问,这个有更新解决吗? |
查看返回url地址是否多了「/」 |
\Encore\Admin\Grid\Column::extend('image', \App\Admin\Extensions\MyImage::class);
class MyImage extends AbstractDisplayer
{
public function display($server = '', $width = 200, $height = 200)
{
if ($this->value instanceof Arrayable) {
$this->value = $this->value->toArray();
}
return collect((array) $this->value)->filter()->map(function ($path) use ($server, $width, $height) {
if (url()->isValidUrl($path) || strpos($path, 'data:image') === 0) {
$src = $path;
} elseif ($server) {
$src = rtrim($server, '/').'/'.ltrim($path, '/');
} else {
//自定义方法添加路由
$src = getOssUrl($path);
}
return "<img src='$src' style='max-width:{$width}px;max-height:{$height}px' class='img img-thumbnail' />";
})->implode(' ');
}
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The text was updated successfully, but these errors were encountered: