DEDECMSv5.7sp1搜索结果按点击量排序

2017-04-20 23:12:33 dedecms
织梦DedeCMSv5.7sp1 搜索结果按点击量排序,如何解决呢?在arc.searchview.class.php文件467行“排序方式”注释下面是搜索结果排序代码,解决方式如下:在/include/arc.searchview.class.php文件467行“//排序方式”注释下面 “//搜索”注释以上的代码改成如下代码:$ordersql = '';if($this->ChannelType< 0 ||$this->ChannelTypeid< 0){if($orderby=="id"){$ordersql="order by arc.aid desc";}else if($orderby=="senddate"){$ordersql="order by arc.senddate desc";}else{$ordersql=" order by arc.click desc";}}else{if($orderby=="senddate"){$ordersql=" order by arc.senddate desc";}else if($orderby=="pubdate"){$ordersql=" order by arc.pubdate desc";}else if($orderby=="id"){$ordersql="  order by arc.id desc";}else{$ordersql=" order by arc.click desc";}}
  测试一下是不是解决了呢