88061102 发表于 2017-8-20 14:44:40

为什么选了类型后 不能翻页 只有1页下一页点不了!以前还能的。

为什么选了类型后 不能翻页 只有1页下一页点不了!以前还能的。

看了演示站也是的,选了类型后就不显示分页了。

空气中的鱼儿 发表于 2017-8-28 13:36:32

打开 \lib\common.php 找到第1611
$rs = Db::name('mcid')->alias('m')->join('vod v','v.vod_id = m.mcid_id','LEFT')->group($group);
修改为
$rs = Db::name('mcid')->alias('m')->join('vod v','v.vod_id = m.mcid_id','RIGHT')

88061102 发表于 2017-9-1 10:38:44

空气中的鱼儿 发表于 2017-8-28 13:36


找到原因了:
原来的配置
home-vod-type-id-(#num)-dir-(#char)-mcid-(#num)-area-(#vhar)-year-(#vhar)-letter-(#vhar)-order-(#vhar)-p-(#num):($dir)/index_($mcid)_($area)_($year)_($letter)_($order)_($p)
home-vod-type-id-(#num)-dir-(#char)-mcid-(#num)-area-(#vhar)-year-(#vhar)-letter-(#vhar)-order-(#vhar):($dir)/index_($mcid)_($area)_($year)_($letter)_($order)
修改成下面的配置:
home-vod-type-id-(#num)-dir-(#char)-mcid-(#vhar)-area-(#vhar)-year-(#vhar)-letter-(#vhar)-order-(#vhar)-p-(#vhar):($dir)/index_($mcid)_($area)_($year)_($letter)_($order)_($p)
home-vod-type-id-(#num)-dir-(#char)-mcid-(#vhar)-area-(#vhar)-year-(#vhar)-letter-(#vhar)-order-(#vhar):($dir)/index_($mcid)_($area)_($year)_($letter)_($order)
伪表态规则
原来的:
rewrite ^/(+)/index_(+)_(.*)_(.*)_(.*)_(.*)_(+).html$ /index.php?s=/vod-type-dir-$1-mcid-$2-area-$3-year-$4-letter-$5-order-$6-p-$7 last;
rewrite ^/(+)/index_(+)_(.*)_(.*)_(.*)_(.*).html$ /index.php?s=/vod-type-dir-$1-mcid-$2-area-$3-year-$4-letter-$5-order-$6 last;修改成
rewrite ^/(+)/index_(.*)_(.*)_(.*)_(.*)_(.*)_(.*).html$ /index.php?s=/vod-type-dir-$1-mcid-$2-area-$3-year-$4-letter-$5-order-$6-p-$7 last;
rewrite ^/(+)/index_(.*)_(.*)_(.*)_(.*)_(.*).html$ /index.php?s=/vod-type-dir-$1-mcid-$2-area-$3-year-$4-letter-$5-order-$6 last;

然后就好了。
页: [1]
查看完整版本: 为什么选了类型后 不能翻页 只有1页下一页点不了!以前还能的。