我们在用到帝国CMS多终端同步插件的时候,后台删除信息后手机端其实并没有同步删除,这也是精准像素近期才发现的BUG。
之前一直只能手动去手机端目录去一个个删除,现在终于有时间解决了这个问题,方法如下:
修改步骤
打开文件e/class/functions.php,查找function DelNewsFile,找到函数DelNewsFile,替换成以下代码:
function DelNewsFile($filename,$newspath,$classid,$newstext,$groupid=0){
global $class_r,$addgethtmlpath,$mob_r; include_once ECMS_PATH.e/dongpo/mob/config.php; //文件类型
if($groupid)
{
$filetype=.php;
}
else
{
$filetype=$class_r[$classid][filetype];
}
//是否有日期目录
if(empty($newspath))
{
$mynewspath=;
}
else
{
$mynewspath=$newspath./;
}
$iclasspath=ReturnSaveInfoPath($classid,$id);
$r=explode(