加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > CMS系统 > Dedecms > 正文

织梦V5.7sp2移动端页面点击下一篇获取不到id解决方法

发布时间:2020-12-14 04:47:28 所属栏目:Dedecms 来源:网络整理
导读:1.首先找到网站目录下面的/include/arc.archives.class.php文件 2.找到837行的如下内容 ?if ( defined('DEDEMOB') ) ?{ ?$mlink = 'view.php?aid='.$preRow['id']; ?} else { ?$mlink = GetFileUrl($nextRow['id'],$nextRow['typeid'],$nextRow['senddate'],

1.首先找到网站目录下面的/include/arc.archives.class.php文件

2.找到837行的如下内容

?if ( defined('DEDEMOB') )

?{

?$mlink = 'view.php?aid='.$preRow['id'];

?} else {

?$mlink = GetFileUrl($nextRow['id'],$nextRow['typeid'],$nextRow['senddate'],$nextRow['title'],$nextRow['ismake'],$nextRow['arcrank'],

?$nextRow['namerule'],$nextRow['typedir'],$nextRow['money'],$nextRow['filename'],$nextRow['moresite'],$nextRow['siteurl'],$nextRow['sitepath']);

?}

3 并将其中的把这一行

$mlink = 'view.php?aid='.$preRow['id'];

修改为

$mlink = 'view.php?aid='.$nextRow['id'];

保存模板之后重新生成页面,这个问题只适用于dedecmsV5.7sp2


(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读