發表日期:2019-09 文章編輯:小燈 瀏覽次數:3185
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 瀏覽次數:3979
日期:2019-09 瀏覽次數:3596
日期:2019-09 瀏覽次數:3477
日期:2019-09 瀏覽次數:3185
日期:2019-09 瀏覽次數:3608
日期:2019-09 瀏覽次數:3245
日期:2019-09 瀏覽次數:3458
日期:2019-09 瀏覽次數:3742
日期:2019-09 瀏覽次數:3789
日期:2019-09 瀏覽次數:3087
日期:2019-09 瀏覽次數:3237
日期:2019-09 瀏覽次數:3456
日期:2019-09 瀏覽次數:3007
日期:2019-09 瀏覽次數:3078
日期:2019-09 瀏覽次數:4785
日期:2019-09 瀏覽次數:3105
日期:2019-09 瀏覽次數:2999
日期:2019-09 瀏覽次數:3232
日期:2019-09 瀏覽次數:3120
日期:2019-09 瀏覽次數:3302
日期:2019-09 瀏覽次數:3595
日期:2019-09 瀏覽次數:3031
日期:2019-09 瀏覽次數:4736
日期:2019-09 瀏覽次數:3757
日期:2019-09 瀏覽次數:3057
日期:2019-09 瀏覽次數:4254
日期:2019-09 瀏覽次數:3001
日期:2019-09 瀏覽次數:3226
日期:2019-09 瀏覽次數:2954
日期:2019-09 瀏覽次數:4186
Copyright ? 2013-2018 Tadeng NetWork Technology Co., LTD. All Rights Reserved.