mirror of
https://gitee.com/doramart/DoraCMS.git
synced 2024-12-05 21:58:47 +08:00
修复了异常报错
This commit is contained in:
parent
32f67eda11
commit
1a8e524e75
@ -37,10 +37,12 @@ function queryCatePage(req, res,folder,cateId){
|
|||||||
if(temp == 'blog'){
|
if(temp == 'blog'){
|
||||||
isDetail = false;
|
isDetail = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var cateIdKey = new RegExp(result._id, 'i');
|
||||||
|
|
||||||
var q = {'sortPath' : { $regex: cateIdKey }};
|
var q = {'sortPath' : { $regex: cateIdKey }};
|
||||||
var params = url.parse(req.url,true);
|
var params = url.parse(req.url,true);
|
||||||
if(params){
|
if(params){
|
||||||
var cateIdKey = new RegExp(result._id, 'i');
|
|
||||||
|
|
||||||
var sort = params.query.sort;
|
var sort = params.query.sort;
|
||||||
var time = Number(params.query.time);
|
var time = Number(params.query.time);
|
||||||
|
Loading…
Reference in New Issue
Block a user