修改文件/include/arc.archives.class

将一下代码

       $next = (is_array($nextR) ? " where arc.id={$nextR['id']} " : ' where 1>2 ');
       $pre = (is_array($preR) ? " where arc.id={$preR['id']} " : ' where 1>2 ');
       $query = "Select arc.id,arc.title,arc.shorttitle,arc.typeid,arc.ismake,arc.senddate,arc.arcrank,arc.money,arc.filename,arc.litpic,        t.typedir,t.typename,t.namerule,t.namerule2,t.ispart,t.moresite,t.siteurl,t.sitepath
                        from `#@__archives` arc left join #@__arctype t on arc.typeid=t.id  ";

修改为

            if($this->ChannelUnit->ChannelInfos['issystem']!=-1){
                $next = (is_array($nextR) ? " where arc.id={$nextR['id']} " : ' where 1>2 ');
                $pre = (is_array($preR) ? " where arc.id={$preR['id']} " : ' where 1>2 ');
                $query = "Select arc.id,arc.title,arc.shorttitle,arc.typeid,arc.ismake,arc.senddate,arc.arcrank,arc.money,arc.filename,arc.litpic,
                        t.typedir,t.typename,t.namerule,t.namerule2,t.ispart,t.moresite,t.siteurl,t.sitepath
                        from `#@__archives` arc left join #@__arctype t on arc.typeid=t.id  ";
            }else{
                $next = (is_array($nextR) ? " where arc.aid={$nextR['id']} " : ' where 1>2 ');
                $pre = (is_array($preR) ? " where arc.aid={$preR['id']} " : ' where 1>2 ');
                $query = "Select arc.aid,arc.title,arc.typeid,arc.senddate,arc.arcrank,arc.litpic, t.typedir,t.typename,t.namerule,t.namerule2,t.ispart,t.moresite,t.siteurl,t.sitepath
                        from `".$this->ChannelUnit->ChannelInfos['addtable']."` arc left join #@__arctype t on arc.typeid=t.id  ";
            }

 

相关文章:

  • 2021-11-06
  • 2021-06-16
  • 2022-01-18
  • 2021-12-01
  • 2022-12-23
  • 2021-09-15
  • 2022-12-23
猜你喜欢
  • 2021-11-25
  • 2021-08-31
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-20
  • 2021-04-15
相关资源
相似解决方案