打开:app/Commands/Attachment/CreateAttachment.php搜索:
- $this->events->dispatch(
- new Uploading($this->actor, $file)
- );
复制代码
大概在125-126行
修改成:
- if (!str_ends_with(strtolower($file->getFilename()),'.gif')){
- $this->events->dispatch(
- new Uploading($this->actor, $file)
- );
- }
复制代码
保存,覆盖站点同名文件,就可以实现gif图片显示了
|