答案 0 :(得分:0)
尝试使用.htaccess:
$start = Carbon::createFromDate(2015, 10, 1);
$result = Pms::raw(function ($collection) use($start){
return $collection->aggregate(array(
array(
'$match' => array(
'EventTS' => array(
'$gte' => $start
)
)
),
array(
'$unwind' => array(
'path' => '$MainsPower',
'includeArrayIndex' => "arrayIndex",
'preserveNullAndEmptyArrays' => true
)
),
array(
'$project' => array(
'MainsPower' => 1,
'timestamp' => array(
'$add' => array(
'$EventTS',
array( '$multiply' => array( 60000, '$arrayIndex' ) )
)
)
)
)
));
})->toArray();
答案 1 :(得分:0)
尝试这个,你需要根据你的类别改变它的一部分
RewriteEngine On
RewriteRule ^category/(.+)/(.+)$ category.php?$1=$2 [NC,L]