# 帝国CMS删除信息手机端不同步怎么解决

*Published:* 2023-11-09
*Author:* 客服001

#### 温馨提醒

如果文章内容或图片资源失效，请留言反馈，我们会及时处理，谢谢

本文最后更新于2023年11月9日，已超过 180天没有更新



打开文件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("
```