发表日期:2019-09 文章编辑:小灯 浏览次数:3154
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 浏览次数:3947
日期:2019-09 浏览次数:3564
日期:2019-09 浏览次数:3443
日期:2019-09 浏览次数:3154
日期:2019-09 浏览次数:3574
日期:2019-09 浏览次数:3216
日期:2019-09 浏览次数:3433
日期:2019-09 浏览次数:3712
日期:2019-09 浏览次数:3763
日期:2019-09 浏览次数:3057
日期:2019-09 浏览次数:3210
日期:2019-09 浏览次数:3426
日期:2019-09 浏览次数:2981
日期:2019-09 浏览次数:3035
日期:2019-09 浏览次数:4750
日期:2019-09 浏览次数:3072
日期:2019-09 浏览次数:2972
日期:2019-09 浏览次数:3202
日期:2019-09 浏览次数:3096
日期:2019-09 浏览次数:3277
日期:2019-09 浏览次数:3560
日期:2019-09 浏览次数:2999
日期:2019-09 浏览次数:4711
日期:2019-09 浏览次数:3717
日期:2019-09 浏览次数:3023
日期:2019-09 浏览次数:4221
日期:2019-09 浏览次数:2966
日期:2019-09 浏览次数:3200
日期:2019-09 浏览次数:2920
日期:2019-09 浏览次数:4161
Copyright ? 2013-2018 Tadeng NetWork Technology Co., LTD. All Rights Reserved.