发现一个路由小BUG

浏览:701 发布日期:2016/12/27 分类:ThinkPHP5专区
http://www.youyoufish.com/cha/%E6%83%85.html
会出错

但是呢
http://www.youyoufish.com/cha/%E5%8E%86%E5%8F%B2.html
就不会出错

我测了,关键字中含有情字。都会无法执行到TP中

以下是部分路由定义
Route::pattern([
'id' => '\d+',
'cid' => '\d+',
//'keywords' => '\w+',
]);

return [
'xz/:id' => ['zhongzi/resource/content', ['method' => 'get']],
'cha/:keywords' => ['zhongzi/resource/search', ['method' => 'get']],

最佳答案
评论() 相关
后面还有条评论,点击查看>>