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