发表日期:2019-09 文章编辑:小灯 浏览次数:3163
1、\app\index\controller\Show.php
搜索:
$prev = $conmodel->getContentPrev($category['id'], $content['id']);
$next = $conmodel->getContentNext($category['id'], $content['id']);
修改为:
$prev = $conmodel->getContentPrev($category['id'], $content['id'], $content['sort']);
$next = $conmodel->getContentNext($category['id'], $content['id'], $content['sort']);
2、\app\index\model\ContentModel.php
搜索:
public function getContentNext($cid, $id){
$where['id'] = ['GT', $id];
修改为:
public function getContentNext($cid, $sort){
$where['sort'] = ['GT', $sort];
搜索:
public function getContentPrev($cid, $id){
$where['id'] = ['GT', $id];
修改为:
public function getContentPrev($cid, $sort){
$where['sort'] = ['LT', $sort];
日期:2019-09 浏览次数:3957
日期:2019-09 浏览次数:3572
日期:2019-09 浏览次数:3455
日期:2019-09 浏览次数:3162
日期:2019-09 浏览次数:3583
日期:2019-09 浏览次数:3226
日期:2019-09 浏览次数:3442
日期:2019-09 浏览次数:3721
日期:2019-09 浏览次数:3769
日期:2019-09 浏览次数:3066
日期:2019-09 浏览次数:3214
日期:2019-09 浏览次数:3435
日期:2019-09 浏览次数:2987
日期:2019-09 浏览次数:3047
日期:2019-09 浏览次数:4760
日期:2019-09 浏览次数:3081
日期:2019-09 浏览次数:2981
日期:2019-09 浏览次数:3211
日期:2019-09 浏览次数:3104
日期:2019-09 浏览次数:3284
日期:2019-09 浏览次数:3571
日期:2019-09 浏览次数:3007
日期:2019-09 浏览次数:4718
日期:2019-09 浏览次数:3728
日期:2019-09 浏览次数:3031
日期:2019-09 浏览次数:4232
日期:2019-09 浏览次数:2974
日期:2019-09 浏览次数:3209
日期:2019-09 浏览次数:2931
日期:2019-09 浏览次数:4166
Copyright ? 2013-2018 Tadeng NetWork Technology Co., LTD. All Rights Reserved.