发表日期:2019-09 文章编辑:小灯 浏览次数:3160
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 浏览次数:3955
日期:2019-09 浏览次数:3570
日期:2019-09 浏览次数:3450
日期:2019-09 浏览次数:3160
日期:2019-09 浏览次数:3581
日期:2019-09 浏览次数:3223
日期:2019-09 浏览次数:3438
日期:2019-09 浏览次数:3719
日期:2019-09 浏览次数:3768
日期:2019-09 浏览次数:3065
日期:2019-09 浏览次数:3213
日期:2019-09 浏览次数:3434
日期:2019-09 浏览次数:2985
日期:2019-09 浏览次数:3045
日期:2019-09 浏览次数:4758
日期:2019-09 浏览次数:3080
日期:2019-09 浏览次数:2979
日期:2019-09 浏览次数:3208
日期:2019-09 浏览次数:3102
日期:2019-09 浏览次数:3281
日期:2019-09 浏览次数:3569
日期:2019-09 浏览次数:3006
日期:2019-09 浏览次数:4716
日期:2019-09 浏览次数:3727
日期:2019-09 浏览次数:3030
日期:2019-09 浏览次数:4229
日期:2019-09 浏览次数:2972
日期:2019-09 浏览次数:3208
日期:2019-09 浏览次数:2928
日期:2019-09 浏览次数:4165
Copyright ? 2013-2018 Tadeng NetWork Technology Co., LTD. All Rights Reserved.