在发布内容时,没有上传缩略图,内容里面有远程图片,然后选中“远程图片本地化”。
这时会把本地化的图片作为缩略图。
数据表pic字段存储的是 16340963e60181db1f3BU0ErH_thumb.jpg 这种带 _thumb的小图,
而不是 16340963e60181db1f3BU0ErH.jpg 原图。
如何修复:
lecms\model\cms_content_model.class.php 文件 大概 896行位置
if( !is_file($dst_file) && $models ) { image::thumb($src_file, $dst_file, $models['width'], $models['height'], $this->cfg['thumb_type'], $this->cfg['thumb_quality']); return $pic; } 把 $pic 改成 $path
转载请注明:本文《发布内容 远程图片本地化 生成缩略图的bug》链接: http://seo.leidu.net/post-442.html
百度已收录
发表评论: