请问帝国CMS无法远程保存没有后缀的图片到本地空间的解决方法
步骤:
-
修改文件:/e/class/functions.php:
-
修改文件:/e/class/connect.php:
- 找到以下代码:
$r[filetype] = GetFiletype($url);
- 在其后面添加以下代码:
if ((strlen($r[filetype]) !== 4) && (strlen($r[filetype]) !== 5)) { $r[filetype] = ".jpg"; }
- 找到以下代码:
更新时间:2025-04-11 00:44:50
上一篇:请问帝国CMS批量替换后台发布者用户名MySQL语句
转载请注明原文链接:https://www.muzicopy.com/suibi/6388.html