dedecms织梦发布时间不是当前时间,对数据库里面的数据进行修改时,发现点击生成的话,今天还是会生成不了,因此dedecms织梦列表文章审核更新到当前时间
打开DEDE后台所在目录(默认为dede)的archives_do.php文件,大概在200行开始:
$maintable = ( trim($row['maintable'])=='' ? 'zuimoban_archives' : trim($row['maintable']) );
$newdate = time();
// $dsql->ExecuteNoneQuery("UPDATE `zuimoban_arctiny` SET arcrank='0' WHERE id='$aid' ");
$dsql->ExecuteNoneQuery("UPDATE `zuimoban_arctiny` SET sortrank='$newdate',senddate='$newdate',arcrank='0' WHERE id='$aid' ");
if($row['issystem']==-1)
{
// $dsql->ExecuteNoneQuery("UPDATE `".trim($row['addtable'])."` SET arcrank='0' WHERE aid='$aid' ");
$dsql->ExecuteNoneQuery("UPDATE `".trim($row['addtable'])."` SET sortrank='$newdate',pubdate='$newdate',senddate='$newdate',arcrank='0' WHERE aid='$aid' ");
}
else
{
// $dsql->ExecuteNoneQuery("UPDATE `$maintable` SET arcrank='0', dutyadmin='".$cuserLogin->getUserID()."' WHERE id='$aid' ");
$dsql->ExecuteNoneQuery("UPDATE `$maintable` SET sortrank='$newdate',pubdate='$newdate',senddate='$newdate',arcrank='0', dutyadmin='".$cuserLogin->getUserID()."' WHERE id='$aid' ");
}
$dsql->ExecuteNoneQuery("UPDATE `zuimoban_taglist` SET arcrank='0' WHERE aid='$aid' ");
$pageurl = MakeArt($aid,false);
}
ShowMsg("成功审核指定的文档!",$ENV_GOBACK_URL);
|